Header Ads Widget

Responsive Advertisement

Ticker

10/recent/ticker-posts

C language to print the tables of inputted number using for statement

/* C language to Print  the table of inputted number using while, Do-- while loop  and for statement*/

For print tables of inputted number using while statement Click here

For print tables of inputted number using Do-While statement Click here

C language to print the tables of inputted number using for statement

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
                                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 if statement ---

C language to print the tables of inputted number using if statement

Output :- 
C language to print the tables of inputted number using if statement


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

Post a Comment

0 Comments