English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

1 answers

Kind of hard to draw with text.

You will need to loop through the numbers 1 to 50

Initialize variables x=0, y =0 , total = 0

START:
y= x*x 'compute square
total = total + y 'totalize value of y
add 1 to x
TEST is X greater than 50? IF yes than exit else Loop to Start

First pass x = 0 so no effect on totals

2006-12-11 00:09:59 · answer #1 · answered by MarkG 7 · 0 0

fedest.com, questions and answers