Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- //19. Determine o maior valor de uma lista de 100 números fornecidos pelo usuário.
- int main()
- {
- int maior=0,i,valor;
- for(i=0;i<100;i++)
- {
- printf("\n Digite um valor: ");
- scanf("%d",&valor);
- if(valor > maior) maior=valor;
- }
- printf("\n Maior: %d",maior);
- getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement