Computer Science, asked by kashyapaina25, 5 months ago

a) find out output of the following code:
(i) int i,j,n;
n=0;i=1
do{
n++; i++;
}while(i<=5);
system.out.println(n);
It 's urgent.

Answers

Answered by parvewn2010
1

Answer:

Analyze the following code. Is count < 100 always true, always false, or sometimes true or sometimes false at Point A, Point B, and Point C?int count = 0; while (count < 100) { // Point A System.out.println("Welcome to Java!"); count++; // Point B } // Point C

▼5.2.2

How many times are the following loop bodies repeated? What is the output of each loop?(a) int i = 1; while (i < 10) if (i % 2 == 0) System.out.println(i); (b) int i = 1; while (i < 10) if (i % 2 == 0) System.out.println(i++); (c) int i = 1; while (i < 10) if ((i++) % 2 == 0)

Similar questions