Reginaldojs

exercicio 13,lista 2

May 15th, 2012
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.43 KB | None | 0 0
  1. #include<stdio.h>
  2. int main(){
  3.         float x,y,z;
  4.         printf("digite tres numeros:");
  5.         scanf("%d %d %d",&x,&y,&z);
  6.         if(x>y && x>z)
  7.           printf("x e maior");
  8.         else
  9.            if(y>x && y>z)
  10.            printf("y e maior");
  11.            else
  12.               if(z>x && z>y)
  13.               printf("z e maior");
  14.               else
  15.               printf("nao existe unico maior");
  16.         return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment