Sunday, March 20, 2016

URI 1113 - Ascending and Descending

#include<stdio.h>
int main()
{
    long int x ,y;
    while(scanf("%ld %ld",&x,&y)==2){
        if(x<y)
            printf("Crescente\n");
        else if(x>y)
            printf("Decrescente\n");
        else if(x==y)
            break;
    }
    return 0;
}

No comments:

Post a Comment