I'm trying to do a program that will take in 10 numbers (integers) then have the out given in reverse. Ex: 1,5,9 (in) Out --> 9,5,1
Here is my code so far:
Code:#include "stdafx.h" #include <iostream> using namespace std; const int LIMIT = 15; int main() { int counter; int sum; int dataValue; counter= 1; sum = 0; while (counter<=15) { cout<<"Enter an integer value. Press return." <<endl; cin>>dataValue; sum = sum + dataValue; counter++; } cout<<"Numbersreversed"<<sum<<endl; return 0; }