Question: Write a C program to read two floating point numbersLandMfrom the console . Find and display the value ofNusing the following formula and if else
Write a C program to read two floating point numbersLandMfrom the console . Find and display the value ofNusing the following formula and if else if ladder.
| M | P |
|---|---|
| If value of M is more than or equals to 16 | 10 % of L |
| If value of M is less than 16 and greater than or equal to 9 | 5 % of L |
| 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 |
N=pow(L,4)-sqrt(M)+P
Print the values of L,M,P and N.
using if else if ladder and using C.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
