Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- int main(){
- int i,n,maior=0,menor=1000;
- printf("digite 50 valores:\n");
- for(i=0;i<50;i++){
- scanf("%d",&n);
- if(menor>n)
- menor=n;
- if(maior<n)
- maior=n;
- }
- printf("o maior valor sera %d\n\n",maior);
- printf("o menor valor sera %d\n\n",menor);
- system ("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment