C PROGRAM USING INTEGER ARRAYS
#include<iostream.h>
#include<conio.h>
void main()
{
int a[5],b;
for(b=0;b<5;b++)
{
cout<<"enter"<<b+1<<"th
number";
cin>>a[b];
}
for(b=4;b>=0;b--)
{
cout<<a[b];
cout<<endl;
}
getch();
}
OUTPUT:
Enter name KIRAN
KIRAN
enter1th
number
L
enter2th number
enter3th number
enter4th number
enter5th
number
7736
0
1472
1496
1
enter1th number
No comments: