class Program { class hesapmakinesi { public double toplama(double x, double y) { double sonuc; sonuc = x + y; return sonuc; } public double cikarma(double x, double y) { double sonuc; sonuc = x - y; return sonuc; } public double carpma(double x, double y) { double sonuc; sonuc = x * y; return sonuc; } public double bolme(double x, double y) { double sonuc; sonuc = x / y; return sonuc; } static void Main(string[] args) { hesapmakinesi hesap = new hesapmakinesi(); double x = 100; double y = 40; double topla = hesap.toplama(x, y); double cikar = hesap.cikarma(x, y); double carp = hesap.carpma(x, y); double bol = hesap.bolme(x, y); Console.WriteLine(topla); Console.WriteLine(cikar); Console.WriteLine(carp); Console.WriteLine(bol); Console.ReadKey(); } } }