Print tables of particular number

C program to print table of particular number :

code

#include<stdio.h>
#include<conio.h>

void main()
{
int i,num;
clrscr();
printf(“Enter number to print table :”);
scanf(“%d”,&num);

printf(“\n”);

for(i=1;i<=10;i++)
{
printf(“%d\n”,num*i);
}

getch();
}

 

output

Enter number to print table :2

2

4

6

8

10

12

16

18

20

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s