kozubovskyy

main.cpp

May 19th, 2022
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <iostream>
  2. #include <cerchioo.h>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. float c=0;
  9. cerchioo C;
  10. C.setRaggio(3);
  11.  
  12. cout<<"inserisci il valore del raggio" << endl;
  13. cin>>c;
  14. cerchioo C2(c);
  15. C2.setRaggio(c);
  16. C2.calcolaArea();
  17. cout<< "l'area e': "<< endl;
  18. cout << C2.getArea();
  19. return 0;
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment