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