Computers and Technology

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

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 13:00, olorteguimikie
Which part of the cpu accepts data?
Answers: 1
image
Computers and Technology, 23.06.2019 18:00, larry5007
Freya realizes she does not have enough in her bank account to use the debit card. she decides to use a credit card instead. which questions should freya answer before using a credit card? check all that apply. can i pay at least the minimum payment each month? can i make payments on time and avoid late fees? will i have to take out a loan? how much in finance charges can i afford to pay? should i talk to a consumer credit counseling service?
Answers: 1
image
Computers and Technology, 23.06.2019 18:30, sawyerfauver
The computers in the sales department did not have enough data storage capacity to contain all the information the department needed to store, and it was taking a long time for team members to access the data they needed. to fix the problem, the technician installed new, larger hard drives on all the computers.
Answers: 1
image
Computers and Technology, 24.06.2019 10:50, latresyn
In 2009 to 2010, how many social network users were reported as being victims of online abuse? a. 1 in 10 b. 100% c.1 in 100 d. 50%
Answers: 2
Do you know the correct answer?
Describe the output that will be generated by this basic program

let x=0

for...

Questions in other subjects:

Konu
Mathematics, 24.07.2021 07:10
Konu
Mathematics, 24.07.2021 07:10