C# Console Do While Döngüsü örnek

Csharp Console Do While Döngüsü örnek

100 den 0 a kadar olan sayıları 5 er 5 er ekrana do-wile ile yazdıran program

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DoWhile2
{
    class Program
    {
        static void Main(string[] args)
        {
            int i = 100;
            do
            {
                Console.WriteLine(i);
                i = i - 5;
            }
            while (i >= 0);
            Console.ReadKey();
        }
    }
}
Bu Yazıya Tepkin Nedir?
+1
0
+1
0
+1
0
+1
0
+1
0
+1
0
+1
0

Yorum Yap