program to find table of a number-by enggfact - Enggfact

Latest

Convert your Passion into your Profession

Monday, September 16, 2019

program to find table of a number-by enggfact

In C language if you want to built a program to find table of given number then what to do?so this post is going to discuss about this question.


//program to print table of a number
#include<stdio.h>
int main()
{
 int n,i=1;//variables
printf("enter any number to print its table:");
scanf("%d",&n);
printf("\n table of the given number is",n);
x:
printf("\n %d*%d=%d",n,i,n*i);
i++;
if(i<=10)
goto x;
return 0;
}

OUTPUT OF THIS PROGRAM-





                                     If this is helpful for you then subscribe our email subscription!
THANKYOU!


No comments:

Post a Comment