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


Please Help Members By Posting Answers For Below Questions

Why is swift so fast?

847


Explain how functions are classified in C++ ?

985


What is the difference between set and map in c++?

871


What is class syntax c++?

838


Is oops and c++ same?

777


What are formatting flags in ios class?

831


What is constructor in C++?

827


Write a program which uses functions like strcmp(), strcpy()? etc

834


Can we use this pointer in a class specific, operator-overloading function for new operator?

822


Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?

2205


How do I get good at c++ programming?

836


How do you add an element to a set in c++?

739


Differentiate between a constructor and a method in C++.

767


State the difference between pre and post increment/decrement operations.

813


What is the difference between ++ count and count ++?

820