+ 1
Fill in the blanks to print x's values from 1 to 5.
var x = 1; while(x=5){ document write(x +"<br />"); x=………+ 1; }
9 odpowiedzi
+ 7
The loop won't run even once, as x is not equal to 5...
I'd change it to
while (x<=5)
and the second last line is
x=x+1
0
thank you
0
int x = 1;
while
(x <= 5) {
cout << x << endl;
x
++
;
}
0
Fill in the blank to output 5 raised to the 3rd power.
0
Thanks you
0
0
Drag and drop to create a valid loop that outputs the numbers 5 to 1:
- 1
var x = 1;
while(x=5){
document write(x +"<br />");
x=………+ 1;
}
answer
while
5
x
- 1
Drag and drop to create a valid loop that outputs the numbers 5 to 1: