+ 1
Hello everybody how can i get low input from fife inputs in c++
Without using functions Only loops and pointers
3 Respuestas
+ 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!
+ 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
+ 1
Okey i will do shots