Home »
Chapter3 C program
» Program to print multiplication table of given number
Program to print multiplication table of given number
Explanation
In this program, n stores a number and i is an increment. The loop start from 1 and ends on 10. Inside printf, the format %dx%d=%d, here %d are replaced by the value of n which is constant, i that is incremented in every loop and n*i which yields product of n and i. Here, x remain same till the program that makes a multiple sense in the output.
No comments:
Post a Comment
If you have any doubt, let me know...