WAP in java to display backward counting from 25 to 1.
Answers
Answered by
1
Answer:
public class Main {
public static void main(String[] args) {
int n = 25;
System.out.print("Backward counting from 25 to 1: ");
while (n>0) {
System.out.print(n+" ");
n = n-1;
}
}
}
Hope I am able to help you
#happy_coding
Similar questions