C Program to print the multiplication table using while statement. Read more about C Programming Language .
/***********************************************************
* You can use all the programs on www.c-program-example.com
* for personal and learning purposes. For permissions to use the
* programs for commercial purposes,
* contact [email protected]
* To find more C programs, do visit www.c-program-example.com
* and browse!
*
* Happy Coding
***********************************************************/
#include <stdio.h>
int main() {
int num, i = 1;
printf("n Enter any Number:");
scanf("%d", &num);
printf("Multiplication table of %d: n", num);
while (i <= 10) {
printf("n %d x %d = %d", num, i, num * i);
i++;
}
return 0;
}
Read more Similar C Programs
Learn C Programming
Simple C Programs
You can easily select the code by double clicking on the code area above.
To get regular updates on new C programs, you can Follow @c_program
You can discuss these programs on our Facebook Page. Start a discussion right now,
our page!
Share this program with your Facebook friends now! by liking it
(you can send this program to your friend using this button)
Like to get updates right inside your feed reader? Grab our feed!
(c) www.c-program-example.com
3 comments on “C Program to print Multiplication table.”
now tell me how to print all tables for example i enter 5 s table then i want to print all wich are starting from 1. means .. i want ans like this 1's table , 2's table , 3's table till 5 .. can u help me .?
Hi Fantaxx, i think this code will help you
For more programs bookmark http://www.c-program-example.com/
and like us on facebook http://www.facebook.com/cprogramexample
int main() {
int num,i,j = 1;
printf("n Enter maximum limit that prints the number of tables from 1 to that number:nn");
scanf("%d", &num);
for(i=1;i<=num;i++)
{
printf("Multiplication table of %d: n", i);
while (j <= 10) {
printf("n %d x %d = %d",i, j, i * j);
j++;
}
printf("nn");
}
return 0;
}
Thanks for this reply. Program is good, you can put it in individual post.