Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

c language programming with given parameters * * 1) Program will ask user to enter 4 integer numbers that can be either positive or negative.

image text in transcribed

image text in transcribed

image text in transcribed

c language programming with given parameters

* * 1) Program will ask user to enter 4 integer numbers that can be either positive or negative. 2) Program will sum the inter numbers and display the value of the sum 3) Program will display largest and smallest of the entered integer values 4) Program will display the average of the 4 entered integers 5) Program will display the product of the 4 integers * 6) Program will display how many positive and negative numbers were entered * 7) Program will display how many odd and even numbers were entered using modulo arithmetic * 8) Program will display the square root of each entered number * * This software is provided in an "as is" condition. No warranties, whether express, implied or statutory, including, but not limited to, implied warranties or merchantability and fitness for a particular purpose apply to this software. or Oklahoma State University shall not, in any circumstances, be liable for special, incidental or consequential * // Use the "fgets function and ask the program user to enter 4 numbers that can be either // positive or negative values. // Then use the atoi function to turn the user input into actual numbers w // Add the for numbers together and display the results using the printf function // Using if statements determine the largest and smallest numbers then display them // using the printf function // Determine the average of the four numbers and display the result // Multiply the four numbers together and display the product // Using "if statements discover which numbers are positive and negative and display how many of // each there are // Using "modulo" arithmetic find the odd and even numbers. Remember modulo division gives the // remainder as an answer. // Display the square root of each number. Remember that the user can enter negative numbers and // will need to find the negative root with the "" displayed

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 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

=+3 In what ways can an MNE improve or change its approach to IHRM?

Answered: 1 week ago