Commit 2f97d2b3 authored by kolarzd's avatar kolarzd
Browse files

Upload New File

parent 4c362b48
No related merge requests found
Pipeline #1538 failed with stages
Showing with 27 additions and 0 deletions
+27 -0
#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");
}
}
Supports Markdown
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