main.c Load default template.. double y; double z; 6 9 scanf("%lf%lf%lf",&x,&y,&z); 10 11 double pow1=pow(x,z); 12 double pow2=pow(x,pow(y,2)); 13 double abs1=abs(y); 14 double sqrt1=sqrt(pow(x*y, z)); 15 16 printf("%.2lf ",pow1) ; 17 printf("%.2lf ",pow2) ; 18 printf("%.21f ",abs1) ; 19 printf("%.2lf\n",sqrt1) ; 20 21 return e; 22 } Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and Develop mode Submit mode observe the program's output in the second box. Enter program input (optional) 5.0 6.50 3.2 main.c Run program Input (from above) (Your program) Output (shown below) Program output displayed here 172.47 340002948455826440449068892160.00 6.00 262.43

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
100%

how do you change the 6.00 to 6.50, my input is 6.50, but it gives an output of 6.00? 

 

c code plz

main.c
Load default template..
double y;
double z;
6
8
9 scanf("%lf%lf%lf",&x,&y, &z);
10
11 double pow1=pow(x,z);
12 double pow2=pow(x,pow(y,2));
13 double abs1=abs(y);
14 double sqrt1=sqrt(pow(x*y, z));
15
16 printf("%.21f ",pow1) ;
printf("%.21f ", pow2) ;
18 printf("%.2lf ",abs1) ;
19 printf("%.21f\n",sqrt1) ;
17
20
21
return e;
22 }
Run your program as often as you'd like, before
submitting for grading. Below, type any needed input
values in the first box, then click Run program and
Develop mode
Submit mode
observe the program's output in the second box.
Enter program input (optional)
5.0 6.50 3.2
main.c
Run program
Input (from above)
Output (shown below)
(Your program)
Program output displayed here
172.47 340002948455826440449068892160.00 6.00 262.43
Codina trail of vour work
What is this?
Transcribed Image Text:main.c Load default template.. double y; double z; 6 8 9 scanf("%lf%lf%lf",&x,&y, &z); 10 11 double pow1=pow(x,z); 12 double pow2=pow(x,pow(y,2)); 13 double abs1=abs(y); 14 double sqrt1=sqrt(pow(x*y, z)); 15 16 printf("%.21f ",pow1) ; printf("%.21f ", pow2) ; 18 printf("%.2lf ",abs1) ; 19 printf("%.21f\n",sqrt1) ; 17 20 21 return e; 22 } Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and Develop mode Submit mode observe the program's output in the second box. Enter program input (optional) 5.0 6.50 3.2 main.c Run program Input (from above) Output (shown below) (Your program) Program output displayed here 172.47 340002948455826440449068892160.00 6.00 262.43 Codina trail of vour work What is this?
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education