Skip to content
Snippets Groups Projects
Commit 29c4da00 authored by Stanisław Pokora's avatar Stanisław Pokora
Browse files

Upload New File

parent 73717eb9
No related merge requests found
lab4c.c 0 → 100644
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(){
float h;
float t=0;
float d=0;
float spadek = sqrt(2*h/9.81);
printf("Podaj wysokosc poczatkowa: ");
scanf("%f",&h);
while (h >= 0) {
h -= 4.9*t*t;
printf("Wysokosc: %f\n",h-d);
t+=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