Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C program that reads ten floating-point numbers. The program should count and print on the screen total number of positive and negative

                                

Write a C program that reads ten floating-point numbers. The program should count and print on the screen total number of positive and negative values among these ten inputs. Output example: Enter integer 1: 51.3 Enter integer 2: -27.6 Enter integer 3: 30.9 Enter integer 4: 16.2 Enter integer 5: 40.8 Enter integer 6: -39.4 Enter integer 7: -6.92 Enter integer 8: -7.32 Enter integer 9: 68.6 Enter integer 10: 9.15 Number of positive: 6 Number of negative: 4

Step by Step Solution

There are 3 Steps involved in it

Step: 1

include stdio h int main float numbers10 int positivecount 0 ... 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

Mobile Communications

Authors: Jochen Schiller

2nd edition

978-0321123817, 321123816, 978-8131724262

More Books

Students also viewed these Programming questions