CppBuzz.com
  
Home C C++ Java Python Perl PHP SQL Javascript Linux Forum

You are here : Home » Solved Programs in C » 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