ACCEPT 20 VALUES IN AN INT ARRAY & PRINT AT THE OUTPUT REVERSE ORDER


#include<stdio.h>
#include<conio.h>
void main()
{
int a[20],i;
printf("Enter 20 Values");
for(i=0;i<19;i++)
  {
  scanf("%d",&a[i]);
  }
  printf("The Reverse orders are");
  for(i=19;i>=0;i--)
    {
    printf("%d",a[i]);
    }
getch();
}

0 comments: (+add yours?)

Post a Comment