Home
C Programming Language
_Tutorials
_Programs
Python Programming
Data Analytics
About Us
Contact Us
Privacy Policy
MyShop24
Geeky Session
Home
C Program
Program To Generate Multiplication Table
Program To Generate Multiplication Table
Geeky Session
Hello friends, in this example, you will learn how to generate
multiplication table of any number
in C programming language using following topics:
Data Types
Variables And Constants
Loops
Code:
#include
int main() { int n,i; printf("Enter no to find table: "); scanf("%d",&n); for(i=1;i<=10;++i) { printf("%d*%d=%d\n",n,i,n*i); } return 0; }
Output:
Enter no to find table: 4
4*1=4
4*2=8
4*3=12
4*4=16
4*5=20
4*6=24
4*7=28
4*8=32
4*9=36
4*10=40
Explaination Of Program:
First input number from user to find multiplication table, Store it in variable 'n'
Use for statement to print number from one to ten, and store it in variable 'i'.
Print the value of n and i using n*i formula.
Post a Comment
0 Comments
Tutorials Series
Basic Of Computer
C Program
C Programming
Python Programming Language
Get a .NET @₹399/Yr
Contact Form
Name
Email
*
Message
*
Search Artical
Check Your Website
Translate
POPULAR POSTS
Paragraph In HTML
What Is Computer Programing Language And Classification Of Programming Language
Headings In HTML
Social Plugin
Popular Posts
Learn C Programming Language |
10/25/2019 02:25:00 pm
Functions in C Programming Language
12/03/2019 12:32:00 pm
What Is Computer Programing Language And Classification Of Programming Language
10/23/2019 07:43:00 pm
0 Comments