jituTechnology

jituTechnology

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();
}

Add a comment

Comments (4)

  1. ConnieMarch 13, 2012 Reply
    Book-marked, I really like your site! 🙂
  2. ReggieMarch 15, 2012 Reply
    Extremely good posting, I will be checking back again on a regular basis to watch out for fresh news.
  3. luminox 8802March 29, 2012 Reply
    Very riveting blog post. This is a truly intriguing blog. I will come back very soon.

Add a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.



Connect with Me

GPO 8973 NPC 541; Kathmandu Nepal
Phone: +977 9851236800

Calendar

April 2024
S M T W T F S
 123456
78910111213
14151617181920
21222324252627
282930