Advertisement
sujonshekh

Simply Array add by Advance class

Jun 17th, 2016
189
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. #define N 5
  3. int main(){
  4.    int a[N];
  5.    int i;
  6.    for(i=0;i<N;i++)
  7.  
  8.    {
  9.        scanf ("%d",&a[i]);
  10.    }
  11.  
  12.    for (i=0;i<N;i++)
  13.    {
  14.        a[i]= a[i]+1;
  15.        printf("%d",a[i]);
  16.    }
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.    return 0;
  24.  
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement