Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Prog1-WS2021_22-Wienkop
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Uwe Wienkop
Prog1-WS2021_22-Wienkop
Commits
408b9944
Commit
408b9944
authored
3 years ago
by
Uwe Wienkop
Browse files
Options
Downloads
Patches
Plain Diff
Das erste Programm
parent
f155962d
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
01 Pythagoras/01 Pythagoras.csproj
+9
-0
9 additions, 0 deletions
01 Pythagoras/01 Pythagoras.csproj
01 Pythagoras/Program.cs
+21
-0
21 additions, 0 deletions
01 Pythagoras/Program.cs
Prog1_WS2021_22.sln
+12
-0
12 additions, 0 deletions
Prog1_WS2021_22.sln
with
42 additions
and
0 deletions
01 Pythagoras/01 Pythagoras.csproj
0 → 100644
+
9
−
0
View file @
408b9944
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<RootNamespace>_01_Pythagoras</RootNamespace>
</PropertyGroup>
</Project>
This diff is collapsed.
Click to expand it.
01 Pythagoras/Program.cs
0 → 100644
+
21
−
0
View file @
408b9944
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
)}
"
);
}
}
}
This diff is collapsed.
Click to expand it.
Prog1_WS2021_22.sln
+
12
−
0
View file @
408b9944
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment