Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int a,b,c;
- printf("Insira tres valores :\n"); scanf("%f %f %f",&a,&b,&c);
- if ((a>b)&&(a>c))
- {
- printf("O primeiro numero eh o maior!\n");
- return 0;
- }
- if ((b>a)&&(b>c))
- {
- printf("O segundo numero eh o maior!\n");
- return 0;
- }
- else printf("O terceiro numero eh o maior!\n");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment