Question
Write a C program which uses the following function to modify the array in its 1st parameter so that all values lower than the square
Write a C program which uses the following function to modify the array in its 1st parameter so that all values lower than the square of the minimum value are set to zero. Print the minimum value and its square inside this function.
void modifyArray(float *);
In main function, 10 array values must be taken from user and modified values must be printed at the end of program.
EXAMPLE OUTPUT :
Enter 10 values: 4.4 8.8 3.1 9.9 3.3 2.2 5.5 7.7 6.6 100.2
-----------------
Min value = 2.20
Its square = 4.84
New values = 0.0 8.8 0.0 9.9 0.0 0.0 5.5 7.7 6.6 100.2
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started