1)
a = 1
b = 2
c = 5
while a < c
a = a + 1
b = b + c
endwhile
output a, b, c
output is A=5 . B=22, C=5?
Is this correct?
install gentoo
>>55165401
epic meme but I'm a beginner. I just want to know if I'm in the ballpark
Do your own homework
>>55164518
Ask in the SQT.
>>55165505
I don't understand
PvQ => R
P = TRUE
∴ P => R
>>55164518
a = 1
b = 2
c = 5
while(1 < 5)
a = 2
b = 7
while(2 < 5)
a = 3
b = 12
while(3<5)
a = 4
b = 17
while(4<5)
a = 5
b = 22
while(5<5) false
Output: a = 5, b = 22, c = 5
the while loop runs 4 times, so
a = 1 + 4*1 = 5
b = 2 + 4*5 = 22
c = 5
>>55164518
c = 5
a = c - 1
b = c × (c - 1) + b