34.1k views
3 votes
Write a program to find the product of 3 numbers

User Annelise
by
5.4k points

2 Answers

0 votes

The following codes have been written using Python.

x = int(input("Enter a number: "))

y = int(input("Enter a number: "))

z = int(input("Enter a number: "))

p = x*y*z

print(p, "is the product of", x, y, "and", str(z)+ ".")

Hope it helps. :)

User Dawid Adach
by
4.4k points
3 votes

Answer:

#include<iostream>

using namespace std;

int main()

{

int a,b,c;

cout<<"enter the value of a:";

cin>>a;

cout<<"enter the value of b:";

cin>>b;

cout<<"enter the value of c:";

cin>>c;

cout<<"product is:"<<(a*b*c);

return 0;

}

Step-by-step explanation:

User Ryan Sayles
by
5.2k points