for (a = 1, b = 2; a <= 19 && b <= 20; a += 2, b = b + 2)
\t bir tab boşluk veriyor.Console.WriteLine("{0,2}\t {1,5}", a, b);
Kodun son hali :using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace forKullanımı
{
class Program
{
static void Main(string[] args)
{
int a, b;
Console.WriteLine("Tek Sayılar Çift Sayılar ");
for (a = 1, b = 2; a <= 19 && b <=20; a += 2, b = b + 2)
{
Console.WriteLine("{0,2}\t {1,5}",a,b);
}
}
}
}
0 Yorumlar