Monday, November 29, 2010

Chronologically Descending Order

#include <iostream.h>

#include <conio.h>

void main()

{

    int a[5], i;

    clrscr();

    cout << "Enter values for array : ";

    for(i=0; i<5; i++)

        cin >> a[i];

    cout << "\nChronological Descending Order \n\n";

    for(--i; i>=0; i--)

        cout << a[i] << endl;

getch();

}

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home