C Program to Multiplication of Two Numbers

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

Output :

Leave a Comment

Your email address will not be published. Required fields are marked *

Shopping Basket
Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
Click outside to hide the comparison bar
Compare
Verified by MonsterInsights