Skip to content

Commit

Permalink
Solve Ascending and Descending in c
Browse files Browse the repository at this point in the history
  • Loading branch information
deniscostadsc committed Aug 22, 2024
1 parent e96a9e9 commit f1c7257
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions solutions/beecrowd/1113/1113.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include <stdint.h>
#include <stdio.h>

int main() {
int16_t a, b;

while (scanf("%d %d", &a, &b) && a != b) {
if (a < b) {
printf("Crescente\n");
} else {
printf("Decrescente\n");
}
}

return 0;
}

0 comments on commit f1c7257

Please sign in to comment.