Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 L and M from the console . Find and display the value of N using the following formula. ( Use if..else ..if structure )

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

image text in transcribed

l need this

SAMPLE OUTPUT: Enter a number 1 : 1 Enter a number 2 : 2 Enter a number 3 : 3 Enter a number 4 : 4 Enter a number 5 : 5 Enter a number 6 : 6 Enter a number 7 : 7 Enter a number 8 : 8 Enter a number 9: 9 Enter a number 10 : 99 Product of numbers less than 4 is 6 Product of numbers greater than 8 is 891

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Fundamentals Study Guide

Authors: Dr. Sergio Pisano

1st Edition

B09K1WW84J, 979-8985115307

Students also viewed these Databases questions

Question

What is the purpose of internal controls in an organization?

Answered: 1 week ago

Question

=+what kinds of policies and practices should be developed?

Answered: 1 week ago

Question

=+ Of the HR issues mentioned in the case,

Answered: 1 week ago