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
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
What are stacks?
A prime number is a number which is divisible only by itself and 1. Examples of the first few primes are 2, 3, 5, 7, 11. Consider writing a program which can generate prime numbers for you. Your program should read in and set a maximum prime to generate and a minimum number to start with when looking for primes. This program should be able to perform the following tasks: 1. Read the maximum number from user (keyboard input) to look for primes. The program should not return any primes greater than this number. 2. Read the minimum number from user (keyboard input) to look for primes. The program should not return any primes less than this number. 3. Generate and print out every prime number between the maximum prime and minimum number specified by the user.
What is implicit conversion/coercion in c++?
Define linked lists with the help of an example.
What is switch case in c++ syntax?
Is c++ a difficult language?
How do you compile the source code with your compiler?
Write a program which uses Command Line Arguments
What is abstraction with real time example?
Explain the isa and hasa class relationships. How would you implement each?
What are containers in c++?
Do you know the problem with overriding functions?
Where are setjmp and longjmp used in c++?
Comment on c++ standard exceptions?