Saturday, November 7, 2020

#Print any table in C

 

Write to print a program to input any number and get table…..?

#include<stdio.h>

#include<conio.h>

int main ()

{

                int x, num, table;

                printf("enter any no");

                scanf("%d",&num);

                for(x=1; x<=10; x++)

                {

                                table=num*x;

                                printf("%d\n",table);

                }

 

}

No comments:

Post a Comment

MCQ QUESTIONS

Loading…