Write a program to print a table of given number.
#include<stdio.h>
#include<conio.h>
void main()
{
int i=1 ,n, tab;
clrscr();
printf(“enter the first number”);
scanf(“%d”,&n);
while(i<=10)
{
tab=n*i ;
printf(“%d”,tab);
i++;
}
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
int i=1 ,n, tab;
clrscr();
printf(“enter the first number”);
scanf(“%d”,&n);
while(i<=10)
{
tab=n*i ;
printf(“%d”,tab);
i++;
}
getch();
}
I love learning and I love people and you’re a person and you’re here to learn. Hopefully, you can see where I’m going with this.
0 Comments
Have any query? Want any type of module?
Please comment it down and let me know.