دنباله ی فیبوناچی برای اعداد زیر 1000
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace _19___1000_of_fibonachi
{
class Program
{
static void Main(string[] args)
{
int second = 1, first = 1, temp;
Console.Write("{0},", first);
while (second < 1000)
{
Console.Write("{0},", second);
temp = first + second;
first = second;
second = temp;
}
Console.ReadKey();
//shmp30
}
}
}
علاقه مندی ها (بوک مارک ها)