Computer Science, asked by kohli5356, 1 year ago

How to find a product of three numbers in algorithm

Answers

Answered by ajitparmar39
28

How do you find the product of three numbers?

product = number1 * number2 * number3. print *, "The sum of the three numbers is ", total. print *, "The product of the three numbers is ", product. end program SumAndProduct.


ajitparmar39: please mark this answer as the brainliest
Answered by aditijaink283
1

Answer:

The answer to the given question is explained in the explanation.

Explanation:

In the c++ program,

first, declare three integer variables.

seconds, get user input for all three.

and then sum and product as we do in normal math.

Finally, print the values.

#include

using std::cout;

using std::cin;

using std::endl;

int main()

{

int x;

int y;

int z; Results

integers;

cout << "Enter three integers whose product is to be calculated:";

cin >> x >> y >> z; // read three integers from user whose product to be calculated

result = x * y * z;

cout << "Picture" << result << endl;

returns 0;

}

Enter three integers: 1 2 3

Product is 6

#SPJ3

Similar questions