using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication41
{
class Program
{
static void Main(string[] args)
{
Console.Write("bir sayı girin :");
int x = Convert.ToInt32(Console.ReadLine());
int a=0,b=1;
for (int i = 1; i <=x ; i+=2)
{
Console.WriteLine(a+"\n"+b);
a=a + b;
b = b + a;
}
}
}
}
0 Yorumlar