Skip to content
Snippets Groups Projects
Commit 408b9944 authored by Uwe Wienkop's avatar Uwe Wienkop
Browse files

Das erste Programm

parent f155962d
No related branches found
No related tags found
No related merge requests found
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<RootNamespace>_01_Pythagoras</RootNamespace>
</PropertyGroup>
</Project>
using System;
namespace _01_Pythagoras
{
class Program
{
static void Main(string[] args)
{
double a, b, c;
Console.WriteLine("Pythagoras");
Console.Write("Länge der Seite a: ");
a = Convert.ToDouble(Console.ReadLine());
Console.Write("Länge der Seite b: ");
b = Convert.ToDouble(Console.ReadLine());
Console.WriteLine($"Länge der Seite c: {Math.Sqrt(a * a + b * b)}");
}
}
}
...@@ -3,7 +3,19 @@ Microsoft Visual Studio Solution File, Format Version 12.00 ...@@ -3,7 +3,19 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16 # Visual Studio Version 16
VisualStudioVersion = 16.0.31702.278 VisualStudioVersion = 16.0.31702.278
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "01 Pythagoras", "01 Pythagoras\01 Pythagoras.csproj", "{8DC7B6AA-65FE-46EA-B91C-245660F723E8}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{8DC7B6AA-65FE-46EA-B91C-245660F723E8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8DC7B6AA-65FE-46EA-B91C-245660F723E8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8DC7B6AA-65FE-46EA-B91C-245660F723E8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8DC7B6AA-65FE-46EA-B91C-245660F723E8}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
EndGlobalSection EndGlobalSection
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment