1. Course
  2. Flow controls A
  3. Sum of infinite numbers

Sum of infinite numbers


Last updated: 8/22/2020 Difficulty: Easy

Write a program in C# that asks for numbers and shows their sum. Request numbers until the user enters 0 and when the program ends show Finished.

Input

7
4
22
-8
6
0

Output

7
11
33
25
31
Finished

Solution

Flow controls A

8 / 9

Android App


Practice C# anywhere with the free app for Android devices.

Android App

Exercises C# by difficulty


Learn C# at your own pace, the exercises are ordered by difficulty.

Make a donation


Your donations support our work and contribute to the maintenance of the app.

Advertising