subject

Describe the output that will be generated by this basic program

let x=0

for i = 0 to 4

for j = 0 to i-1

let k = (i+j-1)

if (k mod 2=0) then

let x= x+k

else if(k mod 3 = 0) then

let x=x+k-2

end if

print x

next j

next i

end

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 17:00, hollodom9654
Which of the following is not contained on the slide show toolbar? a. next button b. slide button c. close button d. pen tool
Answers: 1
image
Computers and Technology, 23.06.2019 15:00, MalikaJones
In the blank libreoffice writer document, to start the process of entering a date field into a letter, click on the insert menu. edit menu. file menu. fields menu.
Answers: 3
image
Computers and Technology, 24.06.2019 02:00, arubright177
Write an expression that will cause the following code to print "equal" if the value of sensorreading is "close enough" to targetvalue. otherwise, print "not equal". ex: if targetvalue is 0.3333 and sensorreading is (1.0/3.0), output is:
Answers: 1
image
Computers and Technology, 24.06.2019 10:30, brandon1748
You're programming an infinite loop. what must you include in your code to prevent crashes? in roblox
Answers: 2
You know the right answer?
Describe the output that will be generated by this basic program

let x=0

for...

Questions in other subjects:

Konu
Mathematics, 25.05.2021 02:00
Konu
Physics, 25.05.2021 02:00