In this post, we will know about code for c program to find the multiplication of two numbers in table format. So read the full post.
Code for C program to find the multiplication of two numbers in table format
#include<stdio.h>
#include<conio.h>
int main()
{
int n, i=5;
printf("Enter an integer: ");
scanf("%d", &n);
printf("%d * %d = %d \n", n, i, n * i);
}
return 0;
}
Output:
Enter an integer: 5
5 * 5 = 25
Read: Program to find Celsius to Fahrenheit and its reverse using if statement