simple c++ program for "abcde123ba" convert "ab321edcba"
with out using string
Answer Posted / abdelrhman matter
#include<iostream>
using namespace std;
int main ()
{
cout<<" insert Any number and i will switch it : ";
int num; cin>>num;
do
{
cout<<num%10;
num = num/10;
}while(num>0);
cout<<endl;
return 0;
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Why is main function important?
Can we change the basic meaning of an operator in c++?
what do you mean by volatile variable?
Why do we use structure in c++?
What problems might the following macro bring to the application?
What does the ios::ate argument do?
What is string in c++ programming?
What are special characters c++?
What is the difference between an array and a list?
Const char *p , char const *p What is the difference between the above two?
What is the type of this pointer in c++?
What is c++ array?
How do we balance an AVL Tree in C++?
What is command line arguments in C++? What are its uses? Where we have to use this?
What is the best book for c++ beginners?