Reginaldojs

exercicio 18,lista 2

Aug 31st, 2012
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3. int main(){
  4.     int a,b;
  5.     printf("digite um numero:");
  6.     scanf("%d",&a);
  7.     printf("agora,digite outro numero:");
  8.     scanf("%d",&b);
  9.     if(a>b)
  10.       printf("Ordem crescente --> %d,%d",b,a);
  11.     else
  12.       printf("ordem crescente --> %d,%d",a,b);
  13.     printf("\n\n\n");
  14.     system ("pause");
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment