Skip to main content

C PROGRAM: Simple explanation of c program to find the table of any number.

C Programming


We will be discussing about the c program to find the table of any number.

We all know that tables is the multiple of the numbers.


C program to find the table of any number.

c program to find the table of any number.

Explaination:

  • Header file stdio.h standard input and output to get input and show output, conio.h console input and output.
  • void main -  function returning value will be null.
  • int - declare the type of variable.
  • clrscr - clear the screen.
  • printf - used to print the output screen.
  • scanf - used to accept input (%d), and read (&n.&i.&k).
  • getch - used to hold the screen until the user gives any type of input.
  • \n is used to print next statement in next line in output screen.
  • I have used while loop.
     While loop:
  • It is a loop control statement.
  • It checks for the condition at the beginning, if condition is true, the loop is executed.
  • if the condition is false, the next loop statement is executed.
  • Thus, it is also known as entry control loop.
  • Syntax:
               while(condition)
                  {
                     --------
                     --------  /*body of the loop*/
                  }
  • Flowchart:

flow chart of while loop.

      
         Output:

                  
output of  c program to find the table of any number.


The above program is used to find the table of any number, it is also an example for while loop.

In following days we will discuss more programs in detail. If you like to learn more just follow me regularly. If you have any question to ask mention below in comment.Thank you......

Comments