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; }
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment