JakubKaczmarek_123

zadanie 7

Apr 16th, 2021
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4. float pole(int *r);
  5. int r = 8;
  6. int *w_r = &r;
  7. int main(){
  8. cout << "pole kola wynosi: " << pole(w_r)<< endl;
  9. }
  10.  
  11. float pole(int *r){
  12. return *r * *r * M_PI;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment