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
What is c++ hash?
What are disadvantages of pointers?
What is the difference between #import and #include?
In c++, what is the difference between method overloading and method overriding?
Can non graphic characters be used and processed in C++?
Can recursive program be written in C++?
Explain the use of vtable.
What is a class definition?
What is an operator in c++?
What is c++ hiding?
Ask to write virtual base class code?
What is the difference between structure and class?
What is #include c++?
Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?
Write about the access privileges in c++ and also mention about its default access level?