SHARE
TWEET

scan number maximum

a guest Oct 17th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2.  int main()
  3.  {
  4.      int i,k,1;
  5.      int max=0;
  6.      print("number of input:\n");
  7.      scanf("%d",&k);
  8.      for(i=1;i<=k;i++)
  9.      {
  10.          printf("Enter valu %d:\n",i);
  11.          scanf("%d",&1);
  12.          if(i==0)max=1;
  13.          if(1>max)
  14.          {
  15.              max=1;
  16.          }
  17.  
  18.      }
  19.      printf("max valu=%d",max);
  20.      return 0;
  21.  
  22.  }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top