This is the first exercise of C
programming tutorials. This C programming series contains many exercises that
will help you to become a great problem solver. So, your first task is to “Print
Multiplication Table in C”. All of the concepts we have studied till
now will use in this task, so by solving this exercise you can examine yourself
that how much effort you need to put in learning the C language.
Instructions:-
Take an input (in integer form) from
the user and print its multiplication table on the screen. Following is the
example of the output.
Input:
Enter the number you want
multiplication table of 6
Output:
Table of 6.
6*1 = 6
6*2 = 12
6*3 = 18
6*4 = 24
6*5 = 30
6*6 = 36
6*7 = 42
6*8 = 48
6*9 = 54
6*10 = 60
Try to solve this exercise by yourself.
These programming puzzles will improve your coding skills and makes you a good
problem solver.
This exercise is a part of C
programming tutorials. If you have not watched my C tutorial, then click
on the link and start learning!
If you like my work, then check out my
other courses and stay up to date with sufyanwithcode.
# include
<stdio.h>
/*
Print
multiplication table of a number entered by the user in pretty form
Example:
Input
Enter
the number you want multiplication table of:
6
Output:
Table
of 6:
6 X 1
= 6
6 X 2
= 12
.
.
.
6 X 10
= 60
*/
int main()
{
/* code */
return 0;
}
No comments:
Post a Comment