Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
UDP - Pytagorova veta
//clang 6.0.0 #include <stdio.h> #include <math.h> double vzdalenost(double aX, double aY); int main(void) { double x,y,r; printf("Zadajte X suradnicu:\n"); scanf("%lf", &x); printf("Zadajte Y suradnicu:\n"); scanf("%lf", &y); r = vzdalenost(x,y); printf("Vysledok = %lf\n", r); printf("Vysledok = %lf", vzdalenost(x,y)); return 0; } double vzdalenost(double aX, double aY) { double r; r = sqrt(aX*aX + aY*aY); return r; }
run
|
edit
|
history
|
help
0
Kód
Bucles: terna pitagórica
ternary test c89
Vectores: Llena vector con números al azar
CV09-2.1
pattern1
Herout (67) - 13
Cvičenie -č.6-UDP
Regiones A y B
salida