Write a C program to read 10 numbers in an array and print in reverse order
//program to read 10 numbers in an array and print in reverse order.
#include <stdio.h>
#include <conio.h>
void main ()
{
int i,j;
int a[10];
printf (“Enter 10 number\n”);
for (i=0;i<10;i++)
{
scanf(“%d”,&a[i]);
}
printf(“The reverse is:\n”);
for (j=9;j>=0;j–)
printf (“%d\t”,a[j]);
getch();
}
Comments (4)