//C++ program - Printing a sequence in Order
#include
using namespace std;
int main()
{
const int size = 5; // defines the size N for %5elements
double a[size]; // declares the array's elements as double
cout << "Enter " << size << " Numbers:\t";
for (int i = 0; i < size; i++)
cin >> a[i];
cout << "In reverse Order: ";
for (int i = size-1; i>=0; i--)
cout << "\t" << a[i];
cout << endl;
system ("pause");
return 0;
}
Note: In the program, After #include "iostream" tag is there...
But it is not seen as the post is considered as a HTML post...
So please don't forget this point...
The original file is uploaded as attachment...
Check that also...
With Regards,
ZORO
IIT Madras - CSE
Attachments
C++ program - Printing a sequence in Order (2106-31954-C++ program - Printing a sequence in Order.txt)