














Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!















num = 3 n = 0 while n < 4 num = num + n n = n + 1 endwhile print(num) num n n < 4 OUTPUT 3 0 TRUE
total count base height area output 0 1 8 3 12 total = 0 for count = 1 to 3 base = input() height = input() area = (base*height)/ total = total + area next count result = total / 3 print(result)
total = 0 for count = 1 to 3 base = input() height = input() area = (base*height)/ total = total + area next count result = total / 3 print(result) total count base height area output 0 1 8 3 12 12 2 6 5 15 27 3 10 6 30
total = 0 for count = 1 to 3 base = input() height = input() area = (base*height)/ total = total + area next count result = total / 3 print(result) total count base height area output 0 1 8 3 12 12 2 6 5 15 27 3 10 6 30 57 4 19
Missing quote mark to end string == for equality (= means assignment)