using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace bt_65
{
class Program
{
static void Main(string[] args)
{
int x, y, pt;
Console.Write("nhap x="); x = int.Parse(Console.ReadLine());
Console.Write("nhap y="); y = int.Parse(Console.ReadLine());
Console.Write("1 ung voi +,2ung voi -,3ung voi *,4 ung voi /:");
pt = int.Parse(Console.ReadLine());
switch (pt)
{
case 1: Console.Write("tong hai so la:" + (x + y)); break;
case 2: Console.Write("hieu hai so la:" + (x - y)); break;
case 3: Console.Write("tich hai so la:" + (x * y)); break;
case 4: Console.Write("thuong cua hai so la:" + (x / y)); break;
default: Console.Write("nhap sai nhap lai:"); break;
}
Console.ReadKey();
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace bt_65
{
class Program
{
static void Main(string[] args)
{
int x, y, pt;
Console.Write("nhap x="); x = int.Parse(Console.ReadLine());
Console.Write("nhap y="); y = int.Parse(Console.ReadLine());
Console.Write("1 ung voi +,2ung voi -,3ung voi *,4 ung voi /:");
pt = int.Parse(Console.ReadLine());
switch (pt)
{
case 1: Console.Write("tong hai so la:" + (x + y)); break;
case 2: Console.Write("hieu hai so la:" + (x - y)); break;
case 3: Console.Write("tich hai so la:" + (x * y)); break;
case 4: Console.Write("thuong cua hai so la:" + (x / y)); break;
default: Console.Write("nhap sai nhap lai:"); break;
}
Console.ReadKey();
}
}
}