Program to Display 1-D Table

#include<stdio.h>
void main()
{
int n,i;
printf(“\n enter the number which multiplication is to be found\n”);
scanf(“%d”,&n);
for(i=1;i<=10;i++)
{
printf(“\t %d”,n*i);
}
}

Output

Note:- I have used Dev C++ compiler. Here it is not compulsory to use include<conio.h> to hold the screen

Leave a Reply

Your email address will not be published.