Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- float pole(int *r);
- int r = 8;
- int *w_r = &r;
- int main(){
- cout << "pole kola wynosi: " << pole(w_r)<< endl;
- }
- float pole(int *r){
- return *r * *r * M_PI;
- }
Advertisement
Add Comment
Please, Sign In to add comment