Computer Applications
Fill in the blanks:
To find the sum of any ten numbers, the loop will run _________ times.
Related Questions
Fill in the blanks:
_________ loop executes at least once, if the condition is false.
Fill in the blanks:
_________ loop checks the condition first before its execution.
The following is a segment of a program.
x = 1; y = 1; if(n>0) { x = x + 1; y = y + 1; }
What will be the value of x and y, if n assumes a value:
(i) 1
(ii) 0
Analyze the following program segment and determine how many times the body of the loop will be executed (show the working).
x = 5; y = 50; while(x<=y) { y = y / x; System.out.println(y); }