+ 1
How would you find the smallest number from multiple integer inputs?
3 ответов
+ 10
U can take the inputs in an array & then use some sorting algorithm
+ 3
i am not familiar with C++ so i will show only the pseudocode:
minimum = first_input
cycle{
val = next_input
if (val < minimum){
minium = val
}
}
print minimum
+ 1
@Gaurav Agrawal that can be made simpler