Source Code
#include <stdio.h>
#include <conio.h>
void main( )
{
float num1, num2, mul;
printf("Enter two numbers: ");
scanf("%f %f",&num1,&num2); /* Stores the two floating point numbers entered by user in variable num1 and num2 respectively */
mul = num1*num2; /* Performs multiplication and stores it */
printf("Multiplication is = %f",mul);
getch();
}
Output
Enter two numbers: 5.5 10.5
Multiplication is = 16.00
Download
#include <stdio.h>
#include <conio.h>
void main( )
{
float num1, num2, mul;
printf("Enter two numbers: ");
scanf("%f %f",&num1,&num2); /* Stores the two floating point numbers entered by user in variable num1 and num2 respectively */
mul = num1*num2; /* Performs multiplication and stores it */
printf("Multiplication is = %f",mul);
getch();
}
Output
Enter two numbers: 5.5 10.5
Multiplication is = 16.00
Download
No comments:
Post a Comment