0% found this document useful (0 votes)
10 views

Week 10 Sat Programing

Uploaded by

Rob Decker
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Week 10 Sat Programing

Uploaded by

Rob Decker
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

lan uursL

rogrammlng week 10
6 A
9 u
10 A
3
ueclare lnLeger counLer
ConsLanL lnLeger Maxvaule 1000
lor counLer 01o Maxvalue sLep 10
ulsplay counLer
Lnd lor
4
ueclare lnLeger number
ueclare lnLeger LoLal 0
ueclare lnLeger couLner
ulsplay 1hls program calcs Lhe LoLal of 10 numbers"
lor counLer 1 Lo 10
ulsplay LnLer a number"
lnpuL number
SeL LoLal LoLal + number
Lnd lor
ulsplay 1he LoLal ls LoLal





lan uursL
rogrammlng week 10
6
ueclare SLrlng C ###############"
lor x 1 Lo 10
lor ? 1 Lo 13
lf ? 13 1hen
ulsplay C
Lnd lf
Lnd lor
Lnd lor


9
ueclare lnLeger counL
ueclare lnLeger Maxvalue30
lor counL 1 Lo Maxvalue
ulsplay 1he counL ls counL
Lnd lor
10
ueclare lnLeger counL 0
Whlle counL 30
ulsplay 1he counL ls counL
SeL counL counL +1
Lnd Whlle

You might also like