Skip to content
Snippets Groups Projects
Commit 82680f17 authored by Mikołaj Warenycia's avatar Mikołaj Warenycia
Browse files

Upload New File

parent 92badfad
Branches
No related merge requests found
HL-24.c 0 → 100644
#include <stdio.h>
#include <stdlib.h>
int main(){
float y, v, h, t = 0;
printf("startowa wysokosc to\n");
scanf("%f", &y);
printf("predkosc pionowa to\n");
scanf("%f", &v);
h = y;
printf("liczymy lot\n");
while(h > 0){
printf("%f\n", h);
h = h + (v*t) - (4.905*t*t);
t += 0.1;
}
printf("weszlo jak w maslo\n");
return 0;
}
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