@ -415,4 +415,11 @@ double Druck(double F, double A)
double Kraft(double p,double A)
{
return p * A;
}
double Flaeche(double F, double p)
double A;
A = F / p;
printf("Flaeche (A) = %.2lf\n", A);
return A;
@ -77,5 +77,6 @@ double Eintauchtiefe(double ps,double pfi,double g);
double Ortsfaktor(double ps,double pfi,double h);
double Druck(double F, double A);
double Kraft(double A,double p);
double Flaeche(double p, double F);
#endif
@ -353,4 +353,10 @@ int main()
p=getValue('P');
A=getValue('A');
Kraft(p,A);
printf("Geben Sie die Kraft (F) ein: ");
F=getValue('F');
printf("Geben Sie den Druck (p) ein: ");
Flaeche(p,F);