daily pastebin goal
18%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2.  
  3.  
  4.  
  5. int main()
  6.  
  7. {
  8.  
  9.  
  10.  
  11. int n[101];
  12.  
  13. int x,y=1;
  14.  
  15.  
  16. for(x=0;x<101;++x)
  17.  
  18.     {
  19.    
  20.     scanf("%d", &n[x]);
  21.  
  22.     }
  23.  
  24. for(x=0;x<101;++x)
  25.    
  26.     {
  27.  
  28.     if(n[x]==n[100])
  29.        
  30.  
  31.         {
  32.    
  33.     y++;
  34.    
  35.        
  36. }
  37.    
  38.     }  
  39.  
  40.  
  41.     printf("%d\n", n);
  42.  
  43. }
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