Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- /*
- * Write a program that reads 3 integer numbers from the console and prints their sum
- */
- class SumOf3Integers
- {
- static void Main()
- {
- Console.Write("Enter number:\n a = ");
- int numberA = int.Parse(Console.ReadLine());
- Console.Write(" b = ");
- int numberB = int.Parse(Console.ReadLine());
- Console.Write(" c = ");
- int numberC = int.Parse(Console.ReadLine());
- Console.WriteLine("The sum of the three integers = {0}", numberA+numberB+numberC);
- Console.ReadLine();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment