Skip to content
Snippets Groups Projects
Commit 8a05d169 authored by Mikołaj Suszek's avatar Mikołaj Suszek
Browse files

Upload New File

parent accaf8a6
Branches
No related merge requests found
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "jezykc16.c"
int main() {
float M, R;
printf("Podaj mase planety w postaci 10^24 \n");
scanf("%f", &M);
printf("Podaj promien planety w km \n");
scanf("%f", &R);
int wynik = sprawdzenie(M, R);
if (wynik == 1){
printf("Masa i promien musza byc wieksze niz zero\n");
return 1;
}
double v = Vucieczki(M, R);
printf("Predkosc ucieczki to:\n %.2f m/s \n", v);
printf("Predkosc ucieczki w km/s to:\n %.2f", v/1000);
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