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

JAC Board Computer || IIT 2025 || Introductory Information Technology || Class 10 || Practical Examination 2025

Marks Division HOE 30 Marks IT Application Report File 20 Marks Viva - Voce 10 Marks 1) Write an HTML code to generate a web p...