Advertisement
Guest User

Untitled

a guest
Jan 14th, 2019
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.11 KB | None | 0 0
  1. int a = 0;
  2. int sum = 0;
  3. do
  4. {
  5.      a = int.Parse(Console.ReadLine());
  6.      sum = sum + a;
  7. } while (a != 0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement