Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

C# ciklai su paaiskinimu kodel neveikia kodas.

using System;

class Program
{
    static void Main () {
        int bendras = 55,
            eilutes = 10;
        char character = '*';
        
        for (int i = 1; i <= bendras; i++) {
            for (int j = 1; j <= eilutes; j++) {
                Console.Write(character);
                bendras--;
            }
            Console.WriteLine("{0} {1}", i, bendras);
        }
        
        for (int k = 1; k <= bendras; k++) {
            Console.Write(character);
        }
    }
}

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.