How to write a C Program to generate Multiplication Table in C Programming Language ?
Solution For C Program:
#include<stdio.h>
void main()
{
int num, ctr;
printf("\nEnter Number for the Table : ");
scanf("%d", &num);
printf("\nNow Printing the Table...\n");
for(ctr = 1; ctr <= 10; ctr++)
printf("%d\t*\t%d\t=\t%d\n", num, ctr, num * ctr);
}
You may also learn these C Program/Code :
C Program To Swap Two Numbers Without Using Third Variable
Learn More :
Generate
- How To Write a C program that generates two random numbers ?
- C program generates a random number and uses an algorithm to generate 9 other numbers.
- C Program Generates 10 Random Integers Between 0 and 99.
- C Program To Generating Fibonacci Series Using Recursion
- C Program to Generate Specific Formats
- Write a c program to accept a string from user & generate following pattern (e.g, input "abcd")
- ACLK (32768 Hz) to generate a one second timer and toggles an LED
Multiplication
- How to Write a C program to perform basic math operations on two input whole numbers. The basic operations are addition, subtraction, multiplication, integer division, real division, and modulus.
- C Program to Find The Product Of Two Numbers Without Multiplication Operator.
- Sequential Matrix Multiplication C Program
Table
- C Program Array NxM Elements Geometric/Arithmetic
- C Program To Print Table Horizontally
- Printing ASCII Table with Numbers and corresponding characters
- C program calculates a given function in range given by user, stores the data in arrays and displays the answer in a table.
- C Program to print table vertically
- C Program contains all the functions that interact directly with the routing table, as well as the main entry method for routing
- C Program Contains all the Functions that interact directly with routing table