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

What is the difference between a "copy constructor" and an "assignment operator" in C++?

616


What is insertion sorting?

661


What are function prototypes?

644


What is the function to call to turn an ascii string into a long?

595


What is a node class in c++?

642






Which bit wise operator is suitable for turning off a particular bit in a number?

641


Is c++ low level?

576


Can a new be used in place of old mallocq? If yes, why?

633


What is a list c++?

570


What do you mean by global variables?

570


List the special characteristics of constructor.

724


Is it possible for a member function to delete the pointer, named this?

610


What is std namespace in c++?

717


Why c++ is better than c language?

557


How can I learn dev c++ programming?

563