// 1,1,2,3,5,8,13 static void Main(string[] args) { int boyut = 0; GenelMetodlar genel = new GenelMetodlar(); // genel.Fibanocci(200); genel.fibanocciDizi(); //boyut = genel.EkrandanSayiOku("Fibonacci Dizisinin Üst Limitini Giriniz: "); //Deneme1(); //int a = 0; //string str; //a = SayiOku(); //str = stringOku(); //// Ekrana basma Yontemleri //// 1. Yontem //Console.WriteLine("Gelen String: " + str); //// 2.Yontem C dilindeki yapinin aynisi. //Console.WriteLine("Gelen String:{0} Gelen int :{1}", str, a); //// 3. Yontem //Console.WriteLine($"Gelen String:{str} Gelen int :{a}"); Console.ReadKey(); }
static void Main(string[] args) { //PiSayisi(); //Max(); //Min(); //Ustalma(5,3); GenelMetodlar genel = new GenelMetodlar(); Console.WriteLine("Usat alma 2.5=>2. Kuvveti:" + genel.UstAlma(2.5, 2)); Console.WriteLine($"-5 sayisini Mutlak Degeri:{genel.MutlakDeger(-5)}"); Console.WriteLine("12.98'in asagi yuvarlanmis hali:" + genel.AsagiYuvarla(12.98)); Console.WriteLine("12.12'in Yukari yuvarlanmis hali:" + genel.YukariYuvarla(12.12)); Console.WriteLine($"12.5 sayisini yuvarlanmis hali:{genel.Yuvarla(12.5)}"); Console.WriteLine($"-12.5 sayisini yuvarlanmis hali:{genel.OndalikTemizle(-12.5)}"); //Disaridan girilen 3 sayidan en kucugunu tek satirda gosteriniz... Console.WriteLine($"5,9,7 sayilarinin en Kucugu {Math.Min(Math.Min(5,9),7) }"); double sayi = 15; //Console.WriteLine("Ust alma 2=>2. Kuvveti:" + genel.UstAlma(2, out sayi)); //Console.WriteLine("Ust alma 2=>3. Kuvveti:" + sayi); //Console.WriteLine("Ref :" + genel.refDeneme(2,ref sayi)); //Console.WriteLine("Toplam :"+ genel.topla(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7)); //Console.WriteLine("Out Oncesi :"+sayi); //Console.WriteLine("Out Sonrasi :" + TestOut(out sayi)); //int sayi1, sayi2; //int toplam, fark, carpim; //int[] sayilar = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; //sayi1 = 5; //sayi2 = 6; //TestOut(sayi1,sayi2,out toplam ,out fark,out carpim ); //Testref(sayilar); //Testref2( sayi1); string[] ogrenciler = new string[] { "Ali", "Veli", "Ayse", "Fatma" }; TestStringRef(ref ogrenciler); }