What's new

Help C# Error while in putting "else"

[XX='inusena, c: 411459, m: 588361'][/XX]
1. Start
2. Let num=0, ctr =0, sum = 0;
3. INput num
4. sum = sum + num;
5. ctr =ctr + 1
6. If counter == 5
OUTput sum
else
goto step 3
7. End

Ayan po example ng teacher ko.
 
try mo muna aralin yung algorithm, daanan mo ng manual, palitan mo yung A at B ng actual numbers,
sulat mo sa papel para makita mo paano tumatakbo ang code
 
Back
Top