/******************************************************/ /* Introduction to Programming */ /* By Dr. ANTF */ /* www.antf.net */ /* Copyright 2015 */ /* */ /* C# 202 - Examples on Variables */ /******************************************************/ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DOS { class Program { static void Main(string[] args) { int x, y; Console.Write("Please enter the 1st number: "); x = int.Parse(Console.ReadLine()); Console.Write("Please enter the 2nd number: "); y = int.Parse(Console.ReadLine()); Console.WriteLine("\nThe sum of {0} and {1} is: {2}", x, y, x + y); Console.WriteLine("\nThe product of {0} and {1} is: {2}", x, y, x * y); Console.ReadKey(); } } }