Loops – For, While, Do While (Exercise) – Learn C#

Loops – For, While, Do While (Exercise) – Learn C#

This is an exercise for this YouTube video.

Happy learning and good luck!

Which loop should you use for a fixed amount of loop iterations?
Which loop runs the code inside the curly braces before checking the condition?

 

Assignment: Write code which will sum numbers from 0 to n (inclusively) where n is your made up number.

 

Click to see the answer

 

 

 

 

 

Leave a Comment