diff --git a/jezykc10.c b/jezykc10.c new file mode 100644 index 0000000000000000000000000000000000000000..f48bcd5c94ce86dd0b4c7359866c2aca20e63e1a --- /dev/null +++ b/jezykc10.c @@ -0,0 +1,15 @@ +#include <stdio.h> +#include <stdlib.h> + +int main() { +printf("Podaj wysokosc poczatkawa:\n"); +float h=0; +scanf("%f", &h); +float t=0, r=h; +while (r>=0) { + printf("\n Polozenie:\n %f", r); + r = h-(9.81*t*t)/2 ; + t+=0.1 ; +} +return 0; +}