C program to Print Table of Number.

#include<stdio.h>
#include<conio.h>
int main()
{
    int num, i, tab;
    printf("Enter the number: ");
    scanf("%d", &num);
    printf("\nTable of %d is:\n", num);
    for(i=1; i<=10; i++)
    {
        tab = num*i;
        printf("%d * %2d = %2d\n", num, i, tab);
    }
    getch();
    return 0;
}
C program to Print Table of Number. C program to Print Table of Number. Reviewed by on December 22, 2019 Rating: 5

No comments:

Powered by Blogger.