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

Upload New File

parent 2843473f
Branches
No related merge requests found
#include<stdio.h>
#include<math.h>
#ifndef ahhfunkcje_H_
#define ahhfunkcje_H_
#define G 0.00000000006674;
int main(){
float check(float M, float R){
if(M>=0 && R>=0){
printf("dane poprawne\n");}
else {
printf("dane niepoprawne\n");}
}
float velocity(float M, float R){
float V;
V = sqrt(2*M/R)*G;
printf("predkosc ucieczki to %f\n", V);
}
return 0;
}
#endif
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