How can I ask for reopen this question from user ManMohan?
my question was if it is possible to add somehow my answer to the closed question from user ManMohan... his question was closed in 45 minutes without accepted answer and I think his question shouldnt be closed, because it was answerable
his question was:
How can I print the numbers 1 through 100 without using any conditional statements? Preferably in Java.
My answer, that i did not post in time (I needed 1 min more), loops from 01 to 99 without condition, (the answer in this question is even better)
public static void print(int[] numbers){
for (int i : numbers) {
for (int j : numbers) {
System.out.println("Number: " + i + j);
}
}
}
int[] numbs = new int[]{0,1,2,3,4,5,6,7,8,9};
print(numbs);