Computer Science, asked by pankajsamaddar77, 9 months ago

can you explain it PLEASE ​

Attachments:

Answers

Answered by superfunky
0

Answer:

here is the answer

Explanation:

let number = 1

again:

let double = number * 2

let square = number * number

print number,double,square

let number = number + 1

if number < 11 then goto again

end

print first,second

let's take a number 1 and assign it to a variable called number

let double = number * 2

that means 1 x 2 = 2

let square = number * number

this line means square of a number (1*1,2*2) [multiplying a number by itself]

print number,double,square

this will print all the assigned values

in this case

1,2,1

let number = number + 1

this is called incrementing

the number becomes 2 because 1 is added to number(1)

if number < 11 then goto again

this loop will continue until the number becomes 11

output will be  

1,2,1

2,4,4

3,6,9

etc

Similar questions