Computer Science, asked by kisshusharma2017, 5 months ago

WAP in java to display backward counting from 25 to 1.​

Answers

Answered by atrs7391
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