Adding assig4

This commit is contained in:
Chris
2026-04-07 20:40:02 +02:00
parent 947b34ad13
commit d10c9ab56f
12 changed files with 721 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
using UtilityLibraries;
int row = 0;
do
{
if (row == 0 || row >= 25)
{
ResetConsole();
}
string? input = Console.ReadLine();
if (string.IsNullOrEmpty(input))
{
break;
}
Console.WriteLine($"Input: {input} {"Begins with uppercase? ",30}: {input.StartsWithUpper()}");
Console.WriteLine();
row += 3;
}
while (true);
return;
void ResetConsole()
{
if (Console.IsOutputRedirected)
{
return;
}
Console.Clear();
Console.WriteLine("\nPress <Enter> only to exit; otherwise, enter a string and press <Enter>:\n");
row = 3;
}