Header Ads

Program for Table Printing in c


 #include<stdio.h>

#include<conio.h>

void main()

{

int n=0;

    int a=1;

    printf("Enter the number= ");

    scanf("%d",&n);

    do{

    printf("%d\n",(n*a));

        a++;

    } while(a<=10);

    getch();

}


OUTPUT:

Enter the number= 6

6

12

18

24

30

36

42

48

54

60

No comments

B