SHARE
TWEET

Untitled

a guest May 25th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<stdio.h>
  2. int main()
  3. {
  4.     int la[7]={5, 7, 8, 9, 10},n=5,k=3,f=100;
  5.     int j=n;
  6.     while(j>=k)
  7.     {
  8.         la[j+1]=la[j];
  9.         j=j-1;
  10.  
  11.     }
  12.     la[k]=f;
  13.     n=n+1;
  14.     int i;
  15.     for(i=0;i<n;i++)
  16.     {
  17.         printf("%d\n",la[i]);
  18.     }
  19.  
  20.  
  21.  
  22.     return 0;
  23. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top