Advertisement
SSkrev

Sum of 3 Integers

Mar 17th, 2014
647
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1. using System;
  2.  
  3. class SumOfThreeInt
  4. {
  5.     static void Main()
  6.     {
  7.         Console.Write("a=");
  8.         double a = double.Parse(Console.ReadLine());
  9.         Console.Write("b=");
  10.         double b = double.Parse(Console.ReadLine());
  11.         Console.Write("c=");
  12.         double c = double.Parse(Console.ReadLine());
  13.         Console.WriteLine("{0} + {1} + {2} = {3}",a,b,c,a+b+c);
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement