public static void main(String[] args) {
int[][] n = {{1, 3}, {2, 4}};
for (int i = n.length - 1; i >= 0; i--) {
for (int y : n[i]) {
System.out.print(y);
}
}
}
Correct answer is 2413.
Run the code:
int n[][] = {{1, 3}, {2, 4}};
for (int i = n.length - 1; i>= 0; i--) {
for (int y : n[i]) {
System.out.print(y);
}
}
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
DJava
Highly Voted 4 years, 6 months agorasifer
Highly Voted 4 years, 5 months agoAhmadTechie
Most Recent 2 weeks, 3 days agoAhmadTechie
2 weeks, 3 days agomesonjesi
1 month agoDarGrin
2 months, 1 week agoa_really_reliable_programmer
3 months, 2 weeks agoOmar_Deeb
4 months agoSreeni_A
4 months agodsms
4 months, 1 week agowinfred_lu
5 months, 1 week agotuyetan
6 months, 1 week agoKolodets
7 months, 3 weeks agoCreazyyyyGirl
9 months, 1 week agoRajeevkuamr
11 months, 1 week agoakbiyik
1 year agojimcoun
1 year, 1 month ago