Guest User

Untitled

a guest
Apr 16th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment