C# :: Aufgabe #301 :: Lösung #6

9 Lösungen Lösungen öffentlich
#301

Das kleine Einmaleins

Anfänger - C# von DragStar - 06.04.2020 um 08:32 Uhr
Erstellen Sie ein Programm, welches das kleine Einmaleins in der Form
1 2 3 4 5 6 7 8 9 10
2 4 6 8 10 12 14 16 18 20
3 ...
.
.
.
10 20 30 40 50 60 70 80 90 100
ausgibt.
#6
vote_ok
von Phplppp (20 Punkte) - 28.05.2020 um 17:08 Uhr
Quellcode ausblenden C#-Code
using System;

namespace kleines_1Mal1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.ForegroundColor = ConsoleColor.Blue;
            Console.WriteLine("\n ---------- Das kleine 1 Mal 1 ----------\n");
            Console.ForegroundColor = ConsoleColor.White;
            for (int a = 1; a < 11; a++)
            {
                for (int x = 1; x < 11; x++)
                {   
                    Console.Write(x * a + "  ");

                }
                Console.WriteLine();
            }


        }
    }
}

Kommentare:

Für diese Lösung gibt es noch keinen Kommentar

Bitte melden Sie sich an um eine Kommentar zu schreiben.
Kommentar schreiben