Advertisement
Fundamentalen

SumOf3Integers

Mar 16th, 2014
375
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1. using System;
  2.  
  3. class SumOf3Integers
  4. {
  5.     static void Main()
  6.     {
  7.         Console.Write("Enter your first number: ");
  8.         int firstNumber = int.Parse(Console.ReadLine());
  9.         Console.Write("Enter your second number: ");
  10.         int secondNumber = int.Parse(Console.ReadLine());
  11.         Console.Write("Enter your third number: ");
  12.         int thirdNumber = int.Parse(Console.ReadLine());
  13.  
  14.         Console.WriteLine("Sum of these numbers is " + (firstNumber + secondNumber + thirdNumber));
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement