- Katılım
- 31 Tem 2019
- Konular
- 443
- Mesajlar
- 524
- Tepkime puanı
- 111
C# Console Fibonacci Dizisi. Klavyeden dizinin kaç elemanının gösterilmesini istiyorsanız rakamla yazıyorsunuz. Ekrana fibonacci dizisinin o kadar elemanını yan yana yazdıran program
Program Kodları:
Ekran Görüntüsü
Download WordPress Themes
Download Premium WordPress Themes Free
Download Best WordPress Themes Free Download
Free Download WordPress Themes
download udemy paid course for free
download coolpad firmware
Download Best WordPress Themes Free Download
Program Kodları:
C#:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace fibonacci_dizisi
{
class Program
{
static void Main(string[] args)
{
int x = 0;
int y = 1;
int sayi;
Console.Write("Fibonoççi Dizisi Kaç Elemanlı Olsun = ");
sayi = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("--------------------------------------------------------");
Console.Write(x + " " + y + " ");
for (int i = 3; i <= sayi; i++)
{
int z = x + y;
Console.Write(z + " ");
x = y;
y = z;
}
Console.ReadLine();
}
}
}
Download WordPress Themes
Download Premium WordPress Themes Free
Download Best WordPress Themes Free Download
Free Download WordPress Themes
download udemy paid course for free
download coolpad firmware
Download Best WordPress Themes Free Download