C homework. For Beginners, refer...
# Include <iostream>
Using namespace STD;
Double EE (double A, double B); // calculates the Square Function of X.
Double ee1 (double A, double B); // calculates the Square Function of Y.
Double mm (double A, double B); // tired multiplication e ^ x
Double MM1 (double A, double B); // e ^ y
Const Double E = 2.7; // declare the value of constant E
Int main ()
{
Double;
Cout <mm (a, e) + MM1 (a, e) <Endl;
Return 0;
}
Double EE (double A, double B)
{
Cout <"Enter the value of X :";
Cin>;
Double V = 1.0;
While (B --)
V * =;
Return V;
}
Double ee1 (double A, double B)
{
Cout <"Enter the value of Y :";
Cin>;
Double V = 1.0;
While (B --)
V * =;
Return V;
}
Double mm (double A, double B)
{
Double I = EE (A, 2 );
Double V = 1.0;
While (I --)
V * = E;
Return V;
}
Double MM1 (double A, double B)
{
Double I = ee1 (A, 2 );
Double V = 1.0;
While (I --)
V * = E;
Return V;
}
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.