In This Video:
I have discussed about using double data type to find the multiplication of two floating point numbers.
Source-code:
// c program to multiply two floating point numbers
#include <stdio.h>
int main(void) {
double a, b, product=0.0; // variable declaration
printf("Enter two numbers: ");
scanf("%lf %lf", &a, &b);
product = a*b; // calculation
printf("The product of two numbers are: %.2lf\n", product);
return 0;
}
In this series I used to solve C Programming Problems with a very efficient manner and to the point approach.
If you find this video helpful please write "This Video is helpful" in the comments section and share this video with your friends.
Access the Complete Playlist
Comments
Post a Comment
Type your feedback here...