Advertisement
ZinedinZidan

zidan11

Oct 16th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int i,v,n,max=0;
  5.     printf("How many numbers : ");
  6.     scanf("%d",&n);
  7.     for(i=0;i<n;i++)
  8.     {
  9.         scanf("%d",&v);
  10.         if(v>max)
  11.         {
  12.             max=v;
  13.         }
  14.     }
  15.     printf("Maximum is = %d",max);
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement