Saturday, 18 October 2014

Write a program that reads 15 numbers from the user into an array and prints them in the reverse order

Leave a Comment

#include<iostream>
#include<conio.h>
using namespace std;
void main()
{
double value[15];
for(int i=0;i<15;i++)
{
cout<<"Enter value = "<<i+1<<"==";
cin>>value[i];
}
for(int b=14;b>=0;b--)
cout<<"The Revers = = "<<value[b]<<endl;
getch();
}

Output

If You Enjoyed This, Take 5 Seconds To Share It

0 Questions: