Jump to content

Recommended Posts

Posted

გავაკეთე C# ზე კონსოლ პროგრამა რომელიც გვიჩვენებს რომელი ითვლის და უჩვენებს რომელი ჩარი უდრის რომელ ინტს. იდეა სხვისგან არ ამიღია. და მაინტერესებს ვინ რას ჩაასწორებდა ან რას დაამატებდა და დადეთ კომენტარში

ესეც კოდი:

using System;


namespace ConsoleApp13
{
    class Program
    {
        static void Print(int[] Numbers)
        {
            foreach(var iten in Numbers)
            {
                Console.WriteLine(iten);
            }
        }


        static void Main()
        {
            Console.WriteLine("es aris cxrili tu romeli (char) udris romel (int)-s");
            Console.WriteLine("sheiyvanet cipri tu 0-dan sanamde gindat gamogitanos shesabamisi simboloebi");
            Console.WriteLine();
            Console.WriteLine(" (i) es gamomtvleli ar aris srulyopili (Beta version)");
            int Counter = 0;
            int input = Convert.ToInt32(Console.ReadLine());
            char symbol = '0';

            Console.Clear();

            while (Counter != input)
            {
                int number = symbol;
                Console.WriteLine(symbol + " = " + number);
                symbol++;
                Counter++;
            }

            //asec sheidzleba gaketeba rogorc qvevitaa
            //Console.WriteLine(Convert.ToInt32(symbol));
            
            //By Vako

            Console.ReadLine();
        }
    }
}
 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.