UrbanPro
true

Take Tuition from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Print a Number in Reverse Order

Sanjeev Rao Polur
20/01/2021 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
Follow 2

Please Enter a comment

Submit

Other Lessons for You

HOW TO CALCULATE EFFICIENCY OF EXCLUDERS AND EJECTORS?
The efficiency of excluders and ejectors can be expressed by η = silt intensity in the canal upstream of the ejector - silt intensity in the canal downstream ...

Electrostatics
Electrostatics made of two words Electrostatics= Electro + statics Electro means Electron (charge) statics means in rest position so we can say that Electrostatics is the branch of Physics in which...

Tuition for language
Hello Mr. Sagar how are you doing? Myself Dr. Nalini from Varanasi, online tutor for various languages. If you need any help plz contact me on this number. 7754898222 Dr. Nalini

ML Aggarwal Class 9 Chapter 1 Solutions
EXERCISE 1.1 1. Insertion Between 2/9 and 3/8, Descending Order: To insert a rational number between 2/9 and 3/8 while arranging them in descending order, we turn to the LCM method to ensure a common...

Identify types of sentences for class IV Examples from English Olympiad for more practice
Identify the type of sentences: 1 Where does Raju live? 2. That is an excellent idea! 3. Mom poured cereal and milk into the bowl. 4. What a beautiful garden it is! 5. Ship these boxes by tomorrow....
X

Looking for Tuition Classes?

The best tutors for Tuition Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Take Tuition with the Best Tutors

The best Tutors for Tuition Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 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 7.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