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