Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
kolarzd
trojuhelnik
Commits
2f97d2b3
Commit
2f97d2b3
authored
4 years ago
by
kolarzd
Browse files
Options
Download
Email Patches
Plain Diff
Upload New File
parent
4c362b48
master
No related merge requests found
Pipeline
#1538
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
trojúhelník.cpp
+27
-0
trojúhelník.cpp
with
27 additions
and
0 deletions
+27
-0
trojúhelník.cpp
0 → 100644
+
27
-
0
View file @
2f97d2b3
#include
<iostream>
int
main
()
{
double
A
,
B
,
C
;
printf
(
"Zadejte A: "
);
scanf_s
(
"%lf"
,
&
A
);
printf
(
"Zadejte B: "
);
scanf_s
(
"%lf"
,
&
B
);
printf
(
"Zadejte C: "
);
scanf_s
(
"%lf"
,
&
C
);
if
(
A
<=
0
||
B
<=
0
||
C
<=
0
)
{
printf
(
"Neplatny vstup"
);
}
else
if
((
C
<
A
+
B
)
&&
(
B
<
A
+
C
)
&&
(
A
<
B
+
C
))
{
printf
(
"lze sestrojit"
);
}
else
{
printf
(
"nelze sestrojit"
);
}
}
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets