do-while loop program in Java using logical operator
Answers
Answered by
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
Similar questions
Science,
6 months ago
India Languages,
6 months ago
English,
1 year ago
Chemistry,
1 year ago
Math,
1 year ago