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 swift so fast?
Explain how functions are classified in C++ ?
What is the difference between set and map in c++?
What is class syntax c++?
Is oops and c++ same?
What are formatting flags in ios class?
What is constructor in C++?
Write a program which uses functions like strcmp(), strcpy()? etc
Can we use this pointer in a class specific, operator-overloading function for new operator?
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?
How do I get good at c++ programming?
How do you add an element to a set in c++?
Differentiate between a constructor and a method in C++.
State the difference between pre and post increment/decrement operations.
What is the difference between ++ count and count ++?