Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int i,max=0,x,y;
- printf("how many number : ");
- scanf("%d",&y);
- for(i=0;i<y;i++)
- {
- scanf("%d",&x);
- if(x>max)
- {
- max=x;
- }
- }
- printf("max is %d",max);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement