Answer to Question #5562 in C++ for Jimmy

Question #5562
write a c++ program to reverse a given no using while loop
1
Expert's answer
2011-12-09T11:00:38-0500
#include <cstdlib>
#include <iostream>

using namespace std;
int ar[10];
int main(int argc, char *argv[])
{
for (int i=0;i<10;i++)
{
& cout<<"please enter "<<i+1<<" number : ";
& cin>>ar[i];
}
for (int i=0;i<10;i++) cout<<ar[i]<<" ";
system("PAUSE");
return EXIT_SUCCESS;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS