Question: Write a program to calculate the K value using if else condition If P value is more than 9 then K M/2 P+C IfP

Write a program to calculate the K value using if else condition 

Write a program to calculate the K value using if else condition If P value is more than 9 then K M/2 P+C IfP value is less than or equal to 9 then K = M/2 + P+C Where C is a constant with value 1.7 Sample output: Enter p value:16 Enter M value: 4 P,M and K values are: 16.000000 4.000000 -0.300000 Sample output: Enter p value: 9 Enter M value: 4 p,M and K values are: 9.000000 4.000000 6.700000

Step by Step Solution

3.26 Rating (144 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Solution include include mathh header file is basically used for performing basic mathematical oper... View full answer

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 Programming Questions!