Skip to main content
Search form
Search
Programming for Beginners
A Free Online Tutorial for Absolute Beginners
Home
Tutorials
Demos
Facebook
Twitter
Google Plus
LinkedIn
Pinterest
Reddit
Beginner's Algorithms
>
A Sum of Numbers
> Exercises >
A Sum of Numbers
Exercises
Write a program that writes out the sum of the first 100 natural numbers.
Write a program that writes out the sum of squares of the first 100 natural numbers.
Click here for solutions
‹ A Bug
up
Minimum Value Algorithm ›
Beginner's Algorithms
A Sum of Numbers
Providing Data on Standard Input
Standard Streams
Comments
A Bug
Exercises
Minimum Value Algorithm
Type Systems
Arrays
Counter, Arithmetic Mean, Division by Zero and 'using' Directive
Nested Loops
Operations on Arrays
Solutions
Theme Colors
bright