Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Elabora um algorítimo que leia 3 valores e diga qual maior*/
- #include <stdio.h>
- #include <conio.h>
- int main(){
- int num;
- int i, maior;
- for(i=0; i<3; i++){
- scanf("%i", &num);
- if(num >= maior){
- maior=num;
- }
- }
- printf("%d", maior);
- return 0;
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement