Advertisement
SamuilPetrow

Console Input/Output - Task 1

Mar 14th, 2014
1,432
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace ConsoleInputOutput
  4. {
  5.     public static class SumOfThree
  6.     {
  7.         public static void Main()
  8.         {
  9.             decimal a = decimal.Parse(Console.ReadLine());
  10.             decimal b = decimal.Parse(Console.ReadLine());
  11.             decimal c = decimal.Parse(Console.ReadLine());
  12.             Console.WriteLine(a+b+c);
  13.         }
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement