/* C language to Print the tables of inputted number using while, Do-- while loop and if statement*/
For print tables of inputted number using while statement Click here
For print tables of inputted number using for statement Click here
For print tables of inputted number using while statement Click here
For print tables of inputted number using for statement Click here
Understand algorithms
take i = 1 and Total (using for store date)
Input Number = 5
/* using loop */
{
if ( i <= 10 ) ; // check i value above to 10
Total = 5 x i ; // before let i = 1;
first time ``= 1
first time ``= 1
Second time = 2
third time = 3
forth time = 4
fifth time = 5
sixth time = 6
seventh time = 7
eighth time = 8
ninth time = 9
tenth time = 10
print total // Show data Output ( Result )
first time = 5
Second time = 10
third time = 15
forth time = 20
fifth time = 25
sixth time = 30
seventh time = 35
eighth time = 40
ninth time = 45
tenth time = 50
i++; // i value increment (1)
}
Lets start ----
Using Do--While statement ---
Output : -
follow my social media account links below
Instagram ---
https://www.instagram.com/alok20raj/
facebook ---
https://www.facebook.com/alok20raj/
Twitter --
https://twitter.com/alok20raj
github --
https://github.com/alok20raj
#alok20raj
@alok20raj
alok20raj
Instagram ---
https://www.instagram.com/alok20raj/
facebook ---
https://www.facebook.com/alok20raj/
Twitter --
https://twitter.com/alok20raj
github --
https://github.com/alok20raj
#alok20raj
@alok20raj
alok20raj
0 Comments
If you have any doubts about the Programming language & Basic Computer. Please let me know.