write a c++ program to multiply three numbers using function
Answers
Answer:
Computer Notes
Menu
Header Right
Home » C++ » Functions » Write A C++ Program To Multiply Two Numbers By Using Function Showing Return Expression
Next →
← Prev
Write A C++ Program To Multiply Two Numbers By Using Function Showing Return Expression
By Dinesh Thakur
#include <iostream.h>
#include <conio.h>
void main( )
{
int x, y, z,mul(int,int);
clrscr();
cout<<''\n Enter the value of x, y : ";
cin>>x>>y;
z = mul (x, y);
cout<<"Multiplied value is "<<z;
getch( );
}
int mul (int p, int q)
{
return (p * q);
}
The code is as followed:
________________________________________________________
#include <iostream>
using namespace std;
void product(int x, int y, int z) {
cout << x*y*z;
}
__________________________________________________________
There may be an issue while viewing this since the spaces in the beginning are removed on many sites so to rectify that I'm attaching an image.