1-D ARRAYS INPUT OUTPUT

1.  #include<stdio.h>
2.  #include<conio.h>
3.  void main()
4.  {
5.  int i,ar[5];
6.  clrscr();
7.  //i/p in array
8.  for(i=0;i<=4;i++)
9.  {
10.     printf("\nEnter any number : ");
11.     scanf("%d",&ar[i]);
12.     }
13.     //o/p in array
14.     printf("\nArrays elements\t");
15.     for(i=0;i<=4;i++)
16.     {
17.     printf("  %d",ar[i]);
18.     }
19.     getch();

20.     }
Output

No comments:

Post a Comment

Programmingway@Eklavya Technosys!: Computer Solutions || Class-4 || Computer for Scho...

Programmingway@Eklavya Technosys!: Computer Solutions || Class-4 || Computer for Scho... :  1) Choose correct one :- 1) The step by step pla...