Skip to content

Commit

Permalink
hotovo
Browse files Browse the repository at this point in the history
  • Loading branch information
Lynder063 committed Oct 27, 2022
1 parent a5ce1fa commit 20aa0a6
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions Task1/task1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,27 @@ int intro(float v0_p, float v1_p, float t0_p, float t_p)
kinematika();
return 0;
}
else {
else {
printf("Vstupni hodnoty nejsou platne.Hodnoty nesmi byt zapornymi cisly.\n");
printf("Uspesne neprovedeno\n");
return -4;
}
}
else {
else {
printf("Vstupni hodnoty nejsou platne.Hodnoty nesmi byt zapornymi cisly.\n");
printf("Uspesne neprovedeno\n");
return -3;
}
}
else {
else {
printf("Vstupni hodnoty nejsou platne.Hodnoty nesmi byt zapornymi cisly.\n");
printf("Uspesne neprovedeno\n");
return -2;
}
}
else {
else {
printf("Vstupni hodnoty nejsou platne.Hodnoty nesmi byt zapornymi cisly.\n");
printf("Uspesne neprovedeno\n");
return -1;
}

Expand Down Expand Up @@ -110,10 +118,11 @@ void kinematika_vypocet()
else if (a > 0) {
typPohybu = 3;
}
else if(a == 0) {
else if (a == 0) {
typPohybu = 2;
}


}


Expand All @@ -131,8 +140,8 @@ void kinematika_vypisPohybu()
else if (typPohybu == 3) {
printf("Pohyb je rovnomerne zrychleny\n");
}


}

void kinematika_vypisTabulky()
Expand Down

0 comments on commit 20aa0a6

Please sign in to comment.