Write the code using looping statement that will print: 10
9
8
7
6
5
4
3
2
(YOUR SURNAME)​


Sagot :

Answer:

public class Main {

public static void main(String[] args) {

for(int i = 10; i > 1; i--){

System.out.println(i);

}

System.out.println("Surname here");

}

}

Explanation:

This is a for loop using Java.