Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main ()
- {
- int strpeso[5],strnum[5];
- int j,maispesado, indif, ask;
- for(j=0; j<5; j++){
- printf(" Digite o número do boi %d\n",j);
- scanf("%d",&strnum[j]);
- printf(" Digite o peso do boi %d\n",j);
- scanf("%d",&strpeso[j]);
- }
- maispesado=0;
- for(j=0; j==4; j++)
- {
- if (maispesado <= strpeso[j])
- {
- maispesado=strpeso[j];
- indif = j;
- }
- }
- printf("Informações do boi mais pesado : %d\n,%d\n", maispesado,strnum[indif]);
- printf("Pronto! =D");
- scanf("%d",&ask);
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement