Advertisement
Guest User

Untitled

a guest
Apr 13th, 2012
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #include <conio.h>
  2. #include <stdio.h>
  3. int main (void){
  4. float a, b;
  5. printf ("Informe o primeiro numero: ");
  6. scanf ("%f", &a);
  7. printf ("Informe o segundo numero: ");
  8. scanf ("%f", &b);
  9. if (a > b){
  10.     printf ("O maior numero eh: %f", a);
  11. }
  12. else {
  13.     printf ("O maior numero eh: %f", b);
  14. }
  15. getch( );
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement