Table printing in c programming

 

#include<stdio.h>
#include<conio.h>
int main()
{
int p,i;
printf("enter the integer number with multiplication table");
scanf("%d",&p);
for(i=1;i<=10;i++)
{
  printf("%d*%d=%d",p,i,p*i);
}
  return 0;
}
Output:enter the integer number with multiplication table 7

7*1=7

7*2=14

7*3=21

7*4=28

7*5=35

7*6=42

7*7=49

7*8=56

7*9=63

7*10=70

Comments

Post a Comment

Popular posts from this blog

To check the age and given the marks are not in c programming

Even or odd in c programming.

Simple interests in c programming