a program in C to input a number and print its arithmetic table upto 10.

Example #1: Multiplication Table Up to 10

#include <stdio.h>
int main()
{
    int n, i;

    printf("Enter an integer: ");
    scanf("%d",&n);

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

Comments

Popular posts from this blog

Area and Perimeter of circle program in c

Apply a motion path to text or an object

IP address