1. C PROGRAM TO MULTIPLY TWO FLOATING NUMBERS.
#include<stdio.h>
#include<conio.h>
void main()
{
float firstnumber , secondnumber , resultofnumbers;
clrscr();
printf("Enter two numbers:-");
//store two float numbers in firstnumber and secondnumber variable
scanf("%f %f", &firstnumber , &secondnumber);
//perform the multiplication for result and stroed the result in resultofnumbers variable
resultofnumbers = firstnumber * secondnumber ;
//display result in resultofnumbers variable
printf("%f", resultofnumbers);
getch();
}
2. C++ PROGRAM TO MULTIPLY TWO FLOATING NUMBERS.
floating poop , float value , multiplication in c , c program to multiply two floating numbers
#include<stdio.h>
#include<conio.h>
void main()
{
float firstnumber , secondnumber , resultofnumbers;
clrscr();
printf("Enter two numbers:-");
//store two float numbers in firstnumber and secondnumber variable
scanf("%f %f", &firstnumber , &secondnumber);
//perform the multiplication for result and stroed the result in resultofnumbers variable
resultofnumbers = firstnumber * secondnumber ;
//display result in resultofnumbers variable
printf("%f", resultofnumbers);
getch();
}
2. C++ PROGRAM TO MULTIPLY TWO FLOATING NUMBERS.
#include<ioistream.h>
#include<conio.h>
void main()
{
float firstnumber , secondnumber , resultofnumbers;
clrscr();
cout<<"Enter two numbers:-";
//store two number in variables
cin>>firstnumber>>secondnumber;
//perform the multiplication for result and stroed the result in resultofnumbers variable
resultofnumbers = firstnumber * second number ;
//display result in resultofnumbers variable
cout<<"result is:-"<<resultofnumbers;
getch();
}
floating poop , float value , multiplication in c , c program to multiply two floating numbers
No comments:
Post a Comment