In a C program, multiplication is an arithmetic operation that involves multiplying two or more values to obtain their product. The multiplication operator in C is the asterisk symbol (*). Here’s a basic example:
Interger Numbers :
#include<stdio.h>
#include<conio.h>
main()
{
int a,b,c;
printf(“Enter first Number = “);
scanf(“%d”,&a);
printf(“Enter Second Number = “);
scanf(“%d”,&b);
c=a*b;
printf(“Multiplication of two numbers is = %d”,c);
}
Output :
Float Numbers :
#include<stdio.h>
#include<conio.h>
main()
{
float a,b,c;
printf(“Enter first Number = “);
scanf(“%f”,&a);
printf(“Enter Second Number = “);
scanf(“%f”,&b);
c=a*b;
printf(“Multiplication of two numbers is = %f”,c);
}