Advertisement
Guest User

Untitled

a guest
May 23rd, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3.  
  4. using namespace std;
  5.  
  6. void risult(float &n)
  7. {
  8.     n=sqrt(n);
  9.     cout<<"La radice quadrata di "<<n*n<<" e' "<<n<<"\n\n";
  10. }
  11.  
  12. int main()
  13. {
  14.  
  15. float n;
  16. cout<<"Inserisci un numero\n\n";
  17. cin>>n;
  18. risult(n); 
  19. system("pause");
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement