Q:

C++ Program to Multiply two Floating Point Numbers

0

C++ Program to Multiply two Floating Point Numbers

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

#include<iostream>
using namespace std;    

int main() 
{
    double num1;
    double num2;
    double total;
    cout << "Enter first number :";
    cin >> num1;
    
    cout << "Enter second number :";
    cin >> num2;
        
    total = num2 * num1;
    cout  << "Total is :" << total;
    
    return 0;
}

Result:

Enter first number :50.4

Enter second number :30.8

Total is :1552.32

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C++ Program to perform all arithmetic operations... >>
<< C++ Program to Swap Values of Two Variables...