Program in C++, C to display the reverse of a number with flowchart

Program in C++, C to display the reverse of a number with the flowchart.

In this tutorial, we will learn about the followings;

  1. Flowchart of the program to display the reverse of a number
  2. Program in C++ to display the reverse of a number
  3. Program in C to display the reverse of a number 

Flowchart for the  reverse of a number using for loop

Program in C++, C to display the reverse of a number flowchart
Figure: Program in C++, C to display the reverse of a number flowchart.

Program in C++ to display the reverse of a number using for loop

Output.

Program in C++, C to display the reverse of a number with flowchart
Figure: Program in C++, C to display the reverse of a number with a flowchart.

Flowchart for the  reverse of a number using Do While loop

Flowchart for the  reverse of a number using Do While loop in C++

Program  to display the reverse of a number using DO WHILE loop [C++]

Write a Program to print a string in reverse order using a do-while loop.

Excercise

Find the possible mistakes in the following Shamil’s Flow Table of the program of  Multiplication Table vertically from 1 to 2.

Loop Which line will execute
I=1 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13

 

I=2 (True) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13

8,9,10,11,12,13

I=3 (True) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13

8,9,10,11,12,13,8,9,10,11,12,13

 

I=4 (False) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13

 

8,9,10,11,12,13,8,9,10,11,12,13 14,15,16

Program in C to display the reverse of a number 

Output

Program in C++, C to display the reverse of a number with flowchart
Figure: Program in C++, C to display the reverse of a number with the flowchart.
By: Prof. Fazal Rehman Shamil    CEO @ T4Tutorials
Whatsapp: +92 302 87 000 85     Facebook: For Discussions