Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class SumOf3Integers
- {
- static void Main()
- {
- Console.Write("Enter your first number: ");
- int firstNumber = int.Parse(Console.ReadLine());
- Console.Write("Enter your second number: ");
- int secondNumber = int.Parse(Console.ReadLine());
- Console.Write("Enter your third number: ");
- int thirdNumber = int.Parse(Console.ReadLine());
- Console.WriteLine("Sum of these numbers is " + (firstNumber + secondNumber + thirdNumber));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement