Skip to content
Snippets Groups Projects
Commit 50667115 authored by Kacper Śmieżewski's avatar Kacper Śmieżewski
Browse files

Update main3.c

parent 27e1933e
Branches
No related merge requests found
...@@ -6,7 +6,7 @@ int main(){ ...@@ -6,7 +6,7 @@ int main(){
float h=0; float h=0;
scanf("%f",&h); scanf("%f",&h);
float time=0, r=h; float time=0, r=h;
while(r>0){ while(r>=0){
r=h-9.81*time*time/2; r=h-9.81*time*time/2;
printf("Polozenie: %f\n",r); printf("Polozenie: %f\n",r);
time+=0.1; time+=0.1;
......
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