using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication7
{
class Program
{
static void Main(string[] args)
{
int sayi1, sayi2,topla, cikar,carp,bol;
for (int i = 1; i >= 0; i++)
{
Console.Write("HESAP MAKİNESİ\n\n");
Console.Write("1.Sayıyı giriniz : ");
sayi1 = int.Parse(Console.ReadLine());
Console.Write("2.Sayıyı Giriniz : ");
sayi2 = int.Parse(Console.ReadLine());
topla = sayi1 + sayi2;
cikar = sayi1 - sayi2;
carp = sayi1 * sayi2;
bol = sayi1 / sayi2;
Console.WriteLine("-Yapabilecekleriniz-");
Console.Write(" 1- Topla\n 2- Çıkar\n 3- Çarp\n 4- Böl\n");
Console.Write("Seçiminizi Yapınız(1-2-3-4) : ");
int secim = int.Parse(Console.ReadLine());
if (secim == 1)
Console.WriteLine("İşlemin Sonucu : " + topla);
else if (secim == 2)
Console.WriteLine("İşlemin Sonucu : " +cikar);
else if (secim == 3)
Console.WriteLine("İşlemin Sonucu : " +carp);
else if (secim == 4)
Console.WriteLine("İşlemin Sonucu : " +bol);
Console.Write("İşleme Devam Etmek İçin Enter'a, Çıkmak İçin Çarpıya(X) Basınız..");
Console.ReadKey();
Console.Clear();
}
Console.ReadKey();
}
}
}
SEARCH
SON PAYLAŞIMLAR
3-latest-65px
ETİKETLER
- 5. Sınıf 1. Dönem (8)
- 5. Sınıf BTY (8)
- 6. Sınıf BTY (1)
- Kişisel (3)
- Lise (9)
- Scratch (11)
- Üniversite - C# (39)
Hiç yorum yok:
Yorum Gönder