answersLogoWhite

0

int RevNum( int num )

{

const int base = 10;

int result = 0;

do

{

result *= base;

result += num % base;

} while( num /= base);

return( result );

}

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Does reversing the order of the digits of a two digit prime number always result in a prime number?

No, reversing the order of the digits of a two-digit prime number does not always result in a prime number.


Does reversing the order of thedigits of a 2 digit prime number always result in a prime number?

No. For example, reversing 23 gets 32.


You are a two digit-prime number the number formed by reversing you digits are also prime your ones digit is 4 less than your tens digit what number are you?

73


You are a 2-digit prime number The number formed by reversing your digits is also prime your ones digit is 4 less than your tens digit What number are you?

73 7-3 = 4 73 is prime and 37 is prime.


The sum of any two-digit number and the number formed by reversing the digits is always divisible by what?

The sum of any two-digit number and the number formed by reversing the digits is always divisible by 11. This is because when you add a two-digit number to its reverse, the result will always be a multiple of 11. This is because the difference between the original number and its reverse is always a multiple of 9, and when you add two multiples of 9, the sum will always be a multiple of 11.


Do you always get a prime number when you rivers a two digit prime number?

No, and you do not even if you reverse them.


Does reversing the order of the digits of a 2 digit prime number always result in a prime number?

No because as for example 23 is a prime number but 32 is a composite number


How many reversing lights on a vw golf mk5?

There is one reversing light. There is one reversing light.


Why the float is used in cprogram?

It's one of the built-in data-types, a float-type variable can hold a floating-point number.


What is reversing number?

A reversing number is a number. Say 14. You reverse the numbers. Then the number will be 41. That is a reversing number.


The sum of the digits of a two digit number is 9 the number obtained by reversing the order of the digits of the gven numbers exceeds the given number by 27 find the given numbers?

3 and 6


What is cprogram code to insert a node in single link list?

Write Code to Insert a Node in a Single Linked List at any given Position.