Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Sum Numbers
- {
- class Program
- {
- static void Main(string[] args)
- {
- int howMany= int.Parse(Console.ReadLine());
- int sum = 0;
- int number = 0;
- for (int i = 0; i < howMany; i++)
- {
- number = int.Parse(Console.ReadLine());
- sum += number;
- }
- Console.WriteLine(sum);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement