Question: Section C Practical Instructions: Use Codeblocks / www.onlinegdb.com to write programs. Copy and paste program in the answer part. Write a C program to read

 Section C Practical Instructions: Use Codeblocks / www.onlinegdb.com to write programs.

Section C Practical Instructions: Use Codeblocks / www.onlinegdb.com to write programs. Copy and paste program in the answer part. Write a C program to read two floating point numbers Land M from the console. Find and display the value of N using the following formula. (Use if.else ..if structure ) N=L4 VM + P M P 10 % of L 5 % of L lif value of M is more than or equals to 16 If value of M is less than 16 and greater than or equal to 9 if value of M is less than 9 and greater than or equals to 4 2% of L If value of M is less than 4 1 % of L Sample output: enter the values of L and M:24 L=2.000000 M-4.000000 P-0.040000 N-14.040000

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!