+ 1

Hello everybody how can i get low input from fife inputs in c++

Without using functions Only loops and pointers

22nd Oct 2021, 8:36 PM
Ahmed AL sadain
3 Answers
+ 5
Ahmed AL sadain , before we can help you, you should show us your attempt first. if you have not done a try by yourself upto now, please do so. Put your code in playground and link it here. thanks!
22nd Oct 2021, 8:42 PM
Lothar
Lothar - avatar
+ 2
Ahmed AL sadain create a container which will store your first input. Then use either a while loop or a for loop to generate the next 4 inputs. (I prefer for loop) As the input is generated, check if it is smaller than the number in your container. If it is, re-assign the value of the container to your new lowest number When the loop stops print the value of the container which should now contain the lowest number of the five inputs Good luck
22nd Oct 2021, 11:22 PM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Okey i will do shots
22nd Oct 2021, 8:44 PM
Ahmed AL sadain