Question: Task 4: Write a C program to find the sum of three floats entered by the user if they are all positive. Otherwise the program

 Task 4: Write a C program to find the sum of

Task 4: Write a C program to find the sum of three floats entered by the user if they are all positive. Otherwise the program should print "At least one of the numbers is negative". 3.9 Enter three float numbers: 2.5 4.2 The sum is 10.6 Enter three float numbers: 7.2 -1.8 5.5 At least one of the numbers is negative

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!