Computer Science, asked by RuhiY, 1 year ago

do-while loop program in Java using logical operator

Answers

Answered by jainaditya0411
4

class DoWhileLoopExample {


   public static void main(String args[]){


        int i=10;


        do{


             System.out.println(i);


             i--;


        }while((i>1) && (i<11));


   }


}




jainaditya0411: hope it helped
jainaditya0411: pls mark me brainliest
RuhiY: i want program using logical operator..not relational operator
jainaditya0411: ok I will change
jainaditya0411: now pls mark me brainliest
RuhiY: thanks
jainaditya0411: Pls mark me brainliest
Similar questions