Question: I need help trying to fix this C program code. I cant get the highest and lowest value. I have attached the problem and the
I need help trying to fix this C program code. I cant get the highest and lowest value. I have attached the problem and the code.
this it the code:
#define CRTSECURENOWARNINGS for Visual Studio compiler
#pragma warningdisable:ignore scanf warnings
#include for printf and scanf
Prototypes
void HighAndLowPTRint high, int low;
void HighAndLowdouble highPtr double lowPtr int count;
int main
Declaration
int count;
double high, low;
printfEnter the count: ;
scanfd &count;
HighAndLow&high, &low, count;
printfThe Highest is lf and the lowest is lf high, low;
Function Definition
void HighAndLowdouble highPtr double lowPtr int count
int count;
double highPtrlowPtr;
double temp, high, low;
int i;
for i ; i count; count
printfEnter a double: ;
scanflf &temp;
if temp highPtr
highPtr temp;
lowPtr temp;
highPtr temp;
else if temp lowPtr
lowPtr temp;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
