Business

C Program to Read Positive Integer Less than 20 and Display Multiplication Table

Write a C program to read in a positive integer less than 20 and display its multiplication table.

C Program to Read Positive Integer Less than 20 and Display Multiplication Table
Source Code, 

#include <stdio.h>
#include <conio.h>
void main()
{
int i,num;
clrscr();
printf("Enter a positive integer less than 20");
scanf("%d",&num);
if(num<20)
{
for(i=1;i<=10;i++)
{
printf("n%d*%d=%d",num,i,i*num);
}
}
else
printf("Enter the number less than 20 only");
getch();
}

Show More

J. Satya

Started blogging in 2010 but working professionally from 2012. Apart from that working as a Digital Marketer, SEO & Conversion Specialist. Helping individuals as well as business to grow.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button
Close
Close