Answered step by step
Verified Expert Solution
Question
1 Approved Answer
why does the following code not work when inputing 1 into the first line? #include #include int main ( ) { int sets = 0
why does the following code not work when inputing into the first line? #include
#include
int main
int sets ;
float po hc sg ;
int lowestSpec;
int cnter ;
int counter ;
int newArraysets;
float flowRate;
printfEnter the number of limestones to compare:";
scanfd &sets;
int multiplessets;
lowestSpec;
for int i ; i sets; i
counter;
cnter;
printfEnter the Information, d : cnter;
scanfd &multiplesi;
scanfd &multiplesi;
scanfd &multiplesi;
for int i ; i sets; i
if multiplesi lowestSpec
printfd multiplesi;
lowestSpec multiplesi;
;
printfThe lowest specific gravity isd lowestSpec;
for int i ; i sets; i
for int j ; j ; j
newArrayij multiplesij;
for int i ; i sets; i
flowRate newArrayi;
newArrayi flowRate;
;
printfd newArray;
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