true

Find the best tutors and institutes for Tuition

Find Best Tuition

No matching category found.

No matching Locality found.

Search for topics

# Print a Number in Reverse Order

Sanjeev Rao Polur
20 Jan 0 0

Method:

Step 1. Get the last digit of the given number by using the Modulus operator(%).

Step 2. Print it.

Step 3. Get the remaining digits of the number.

Step 4. Repeat Step 1 to 3 until the given number becomes 0.

The logical part of C Program:

While(num != 0)

{

lastdigit = num % 10;

printf("%d",lastdigit);

num = num/10;

}

Result:

You try with any number and let me know the feedback. Useful for exams and interviews.

0 Dislike

## Other Lessons for You

Chemical bond
I compare Chemical bond with true love True love hold people besides soul together in the same way chemical bond is force of attraction it holds atoms together Now we have one doubt y atoms involve...

How to Build Confidence to Speak Fluent English?
One of the critical requirements in today's fast-forwarding time is to Speak Fluent English, given English is the universally adapted Second Language! To be able to have a clear conversation in one's Friend...

Fatima M. | 30 Mar

Mathematical Modelling in Real Life
Since the very beginning, we tend to solve problems using mathematical mapping in our brain. Like in how many minutes will we reach the destination at this speed? Or, What will be the interest in a particular...

Suvam Banerjee | 03 Mar

SAT Mathematics Subject test problem
Find the difference between the maximum and minimum values of Cos 2x + Cos x. Answer: Let y = Cos 2x + Cos x First derivative of y, when it equates to zero, gives maximum and/or minimum value of...

Lavanya K. | 31/12/2020

Find Tuition near you

### Looking for Tuition ?

Find best Tuition in your locality on UrbanPro.

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

### Looking for Tuition Classes?

Find best tutors for Tuition Classes by posting a requirement.

• Post a learning requirement
• Get customized responses
• Compare and select the best

### Looking for Tuition Classes?

Find best Tuition Classes in your locality on UrbanPro

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 25 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 6.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more