Home C C++ Java Python Perl PHP SQL JavaScript Linux Online Test Forum

Home » Solved Programs » Program to print table

C program to print table of any number

This C program takes input from user and prints its table. User can input any integer value

#include<stdio.h>

int main(){
    int no;
    
    printf("\n Enter any no : ");
    scanf("%d",&no);
    
    for(int i=1; i<=10; i++)
    printf("\n %d * %d  %d",no,i, no * i);
   
 return 0;
}

c program to print table