Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class ExactSumOfRealNumbers
- {
- static void Main()
- {
- int n = int.Parse(Console.ReadLine());
- decimal sum = 0m;
- for (int i = 0; i < n; i++)
- {
- sum += decimal.Parse(Console.ReadLine());
- }
- Console.WriteLine(sum);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement