Exercise 1 Calculator
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Sololearn
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Enter first number :");
int fir = int.Parse(Console.ReadLine());
Console.WriteLine("Enter second number :");
int sec = int.Parse(Console.ReadLine());
int result= fir + sec;
Console.WriteLine("{0} + {1} = {2}",fir,sec,result);
}
}
}
Comments
Post a Comment