using System;
public class Exercise
{
public static void Main()
{
Console.Write("Enter a number: ");
int num1 = Convert.ToInt32(Console.ReadLine());
int num2 = num1 + 1;
Console.WriteLine("{0} + {1} = {2}", num1, num2, num1+num2);
Console.WriteLine("{0} - {1} = {2}", num1, num2, num1-num2);
Console.WriteLine("{0} x {1} = {2}", num1, num2, num1*num2);
Console.WriteLine("{0} / {1} = {2}", num1, num2, num1/num2);
}
}
Programming Course in C# ¡Free!