Commit 0881f9af authored by Uwe Wienkop's avatar Uwe Wienkop

Primzahlprogramm verbessert

parent 2d5ae192
......@@ -10,9 +10,21 @@ namespace _03Praktikumstipps
{
static void Main(string[] args)
{
Console.WriteLine("Bitte int-Wert eingeben");
int a, b, c = 0;
Console.WriteLine("Bitte int-Wert für a eingeben");
string eingabe = Console.ReadLine();
int x = Convert.ToInt32(eingabe);
a = Convert.ToInt32(eingabe);
Console.WriteLine("Bitte int-Wert für b eingeben");
b = Convert.ToInt32(Console.ReadLine());
if (a == 0 && b == 0 && c == 0)
Console.WriteLine("Immer wahr");
else if (a == 0 && b == 0 && c != 0)
Console.WriteLine("Keine Lösung");
}
}
}
......@@ -20,7 +20,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "02DoubleVsInt", "02DoubleVs
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "02DreistelligeZahlen", "02DreistelligeZahlen\02DreistelligeZahlen.csproj", "{C316E753-9ECF-4169-BD13-B302886C24D2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "03Praktikumstipps", "03Praktikumstipps\03Praktikumstipps.csproj", "{BDA1AEF1-E1B8-4A76-B055-22E0A5C91594}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "02Praktikumstipps", "03Praktikumstipps\02Praktikumstipps.csproj", "{BDA1AEF1-E1B8-4A76-B055-22E0A5C91594}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment