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 agoAhmadTechie
2 weeks agomesonjesi
1 month agoDarGrin
2 months agoa_really_reliable_programmer
3 months, 1 week agoOmar_Deeb
3 months, 3 weeks agoSreeni_A
3 months, 3 weeks agodsms
4 months agowinfred_lu
5 months, 1 week agotuyetan
6 months agoKolodets
7 months, 3 weeks agoCreazyyyyGirl
9 months agoRajeevkuamr
11 months, 1 week agoakbiyik
1 year agojimcoun
1 year, 1 month ago