top of page
Writer's pictureThe Tech Platform

Write a Program to Print Multiplication Table using for loop.


Code:

#include <stdio.h>
int main()
{
   int n, i;
 
    printf("Enter a Number ");
    scanf("%d",&n);
 
    for(i=1; i<=10; ++i)
    {
        printf("%d * %d = %d \n", n, i, n*i);
    }
     
    getch();
    
}

Output:




The Tech Platform

0 comments

Comentarios


bottom of page