Search This Blog


Friday, 12 April 2019

Program to Print Table of Any Number in Language C

Hello Viewers , thanks for visiting our blog , if you liked it make sure to check out our other blogs too, have a good day.

In this program the user needs to input a number and then the table of that number will be printed .


CODE

#include<stdio.h>

int main()
{
int num,i;                 // defining variables of int type
printf("\n ENTER NUMBER TO PRINT ITS TABLE");
scanf("\n %d",&num);    // taking value from user

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

}

return 0;
}


OUTPUT


No comments:

Post a Comment