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

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;
}