top of page

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

留言


bottom of page