Uebungsaufgaben_ITFS_3_SS_2025/Exercises/E08_If/Exercise_1.cs
2025-02-10 08:57:36 +01:00

41 lines
785 B
C#

using System;
using System.IO;
using System.Collections.Generic;
using System.Data.Common;
namespace Exercises_C_Sharp.E08_If
{
class Exercise_1
{
public static void Start()
{
//Sorgen Sie dafür, dass unten "Hello World!" ausgegeben wird.
//Code START
dynamic b = -1;
//Code ENDE
if(b)
Console.Write("He");
//Code START
//Code ENDE
if(!b)
Console.Write("llo");
//Code START
//Code ENDE
if(b == true)
Console.Write(" Worl");
//Code START
//Code ENDE
if(b == false)
Console.WriteLine("d!");
}
}
}