Advertisement
PROFESSOR_AIH

Ascending and Descending

Apr 3rd, 2022
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int a,b;
  5.     while(1)
  6.     {
  7.         scanf("%d %d",&a,&b);
  8.         if(a<b)
  9.         {
  10.             printf("Crescente\n");
  11.         }
  12.         else if(a>b)
  13.         {
  14.             printf("Decrescente\n");
  15.         }
  16.         else if(a==b)
  17.             break;
  18.     }
  19.     return 0;
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement