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.
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*/
}
Output:



Comments
Post a Comment