Advertisement
Guest User

Übung 8-01

a guest
Mar 19th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. double Kreisf(double x);
  7.  
  8. const double pi = 3.1415926535;
  9.  
  10. int main()
  11. {
  12. double a;
  13. cout << "Radius eingeben" << endl;
  14. cin >> a;
  15. cout << Kreisf(a) << endl;
  16. return 0;
  17. }
  18.  
  19. double Kreisf(double x) {
  20. x = pi * pow(x,2);
  21. return x;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement