Answer to Question #186794 in C++ for john

Question #186794

Declare two variables a and b to store values 2.1 and 6.4. Declare another variable c and assign it the result of a * b.


1
Expert's answer
2021-04-28T11:29:42-0400
#include <iostream>
using namespace std;

int main()
{
    double a = 2.1;
    double b = 6.4;
    double c = a * b;

    cout << a << " * " << b << " = " << c << endl;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS