write a program to print the product of three numbers.
Answers
Answered by
7
for c++
#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;
}
#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;
}
Answered by
7
class Product
{
public static void main()
{
int p,n;
System.out.println("Enter the required number");
p=n*n*n;
System.out.print("The product is"+p);
}
}
Similar questions
English,
6 months ago
Math,
1 year ago
Math,
1 year ago
Biology,
1 year ago
Computer Science,
1 year ago