UrbanPro
true
default_background

Take Tuition from the Best Tutors

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

Print a Number in Reverse Order

Profile Photo Sanjeev Rao Polur
20/01/2021 0 View Comments0

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 3 Loading Spinner
Default Profile Photo

Please Enter a comment

Submit

Other Lessons for You

Why Prefer Online Classes?
Hello students, hope you all are doing well under your mentorship in this harsh season & by the side, you all must be enjoying your mentoring skillsЁЯШК. Revert me if I'm right ЁЯШК . Basically, from...
Profile Photo

Thakur ka Kuan (рдард╛рдХреБрд░ рдХрд╛ рдХреБрдЖрдБ)
рдкреНрд░реЗрдордЪрдВрдж рдиреЗ рдЗрд╕ рдХрд╣рд╛рдиреА рдХреЗ рдорд╛рдзреНрдпрдо рд╕реЗ рднрд╛рд░рддреАрдп рдЬрд╛рддрд┐рдкреНрд░рдерд╛ рдХреА рд╕рдмрд╕реЗ рдШреГрдгрд┐рдд рдкрд░рдВрдкрд░рд╛ рдЕрд╕реНрдкреГрд╢реНрдпрддрд╛ (рдЫреБрдЖрдЫреВрдд) рдХреЗ рдХрд╛рд░рдг рддрд┐рд░рд╕реНрдХрд╛рд░, рдЕрдкрдорд╛рди рдФрд░ рдорд╛рдирд╡реАрдп рдЕрдзрд┐рдХрд╛рд░реЛрдВ рд╕реЗ рд╡рдВрдЪрд┐рдд рдЬреАрд╡рди рдЬреА рд░рд╣реЗ рдЕрдЫреВрддреЛрдВ рдХреА рд╕рд╛рдорд╛рдЬрд┐рдХ рдФрд░ рдЖрд░реНрдерд┐рдХ рд╕реНрдерд┐рддрд┐ рдХреЛ рдЕрднрд┐рд╡реНрдпрдХреНрдд...
R



Confusing Words
There are some words which can be confusing as per their pronunciation, meaning etc. Today I'll discuss some confusing words. Here are some: YOUR & YOU'RE : YOUR- belonging to you like your...
Profile Photo
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