C program to generate the table of a given number - With Output

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

void main()
{
     int i,j,k;
clrscr();
printf(“Enter any number”);
scanf(“%d”,&i);
printf(“The table is : \n”);

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

getch();
}

OUTPUT  :
Enter any number 5
The table is :
5
10
15
20
25
30
35
40
45

50
Share on Google Plus

About Akash Manhas

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment