TOPIC

[DART] Runtime error e Time limet Exceeded

Tauã asked 10 months ago

As vezes aparece "runtime error" e as vezes "time limet exceeded".

import 'dart:io';

void main()
{
    int x;
    int y;
    do{
        x = int.parse(stdin.readLineSync());
        y = int.parse(stdin.readLineSync());
        if(x < y){
            print("Crescente");
        }else if(x > y){
            print("Decrescente");
        }
    }while(x != y);
}

Remember not post solutions. Your post may be reviewed by our moderators.