Wednesday, 13 August 2014

ARRAY1D_INST

//Insertion in 1D array

#include<stdio.h>
#include<conio.h>
int main()
{

 int i,num[5];
 printf("Enter the number\n");
  for(i=0;i<5;i++)
  {
   scanf("%d",&num[i]);
  }
 printf("\nNumber entered in array\n");
   for(i=0;i<5;i++)
   {
    printf("%d\n",num[i]);
   }
   getch();

}

2 comments:

  1. what program is this?
    its not related to any tasks assigned...its simply displaying the elements we are entering...

    ReplyDelete
    Replies
    1. i think u cant understand it.........this is the program for insertion in one dimensional array

      Delete

Note: only a member of this blog may post a comment.