Question: Compute: answer = | i | | j | Ex: If the input is 2 . 0 , 4 . 0 , then the output

Compute: answer =|i||j|
Ex: If the input is 2.0,4.0, then the output is:
16.0
int main(){
double i;
double j;
double answer;
cin i;
cin j;
pow(fabs(i));
cout fixed setprecision(1); // setprecision(1) outputs answer with 1 decimal place.
cout answer endl;
return ;
}
 Compute: answer =|i||j| Ex: If the input is 2.0,4.0, then the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!