68 338
Assignments Done
98,8%
Successfully Done
In November 2018

Answer to Question #5562 in C++ for Jimmy

Question #5562
write a c++ program to reverse a given no using while loop
Expert's answer
#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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions