22 lines
534 B
C#
22 lines
534 B
C#
using System;
|
|
using System.IO;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Exercises_C_Sharp.E03_Strings
|
|
{
|
|
class Exercise_11
|
|
{
|
|
public static void Start()
|
|
{
|
|
//Sorgen Sie dafür, dass auf der Konsole ein richtiger Satz ausgegeben wird.
|
|
string s1 = "Piratenschiff";
|
|
|
|
//Code START
|
|
string s2 = "";
|
|
int i1 = -1;
|
|
//Code ENDE
|
|
|
|
Console.WriteLine($"Das Wort {s1} hat genau so viele Zeichen wie {s2}, nämlich {i1}.");
|
|
}
|
|
}
|
|
} |