View difference between Paste ID: e42CiuMW and jNZ2vpVP
SHOW: | | - or go back to the newest paste.
1
using System;
2
3
namespace ConsoleInputOutput
4
{
5
    public static class SumOfThree 
6
    {
7
        public static void Main()
8
        {
9-
            int a = int.Parse(Console.ReadLine());
9+
            decimal a = decimal.Parse(Console.ReadLine());
10-
            int b = int.Parse(Console.ReadLine());
10+
            decimal b = decimal.Parse(Console.ReadLine());
11-
            int c = int.Parse(Console.ReadLine());
11+
            decimal c = decimal.Parse(Console.ReadLine());
12
            Console.WriteLine(a+b+c);
13
        }
14
    }
15
}