Guest User

Untitled

a guest
Dec 13th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <iostream>
  2. #include <math.h>
  3. using namespace std;
  4.  
  5. int Square(int value){
  6. int result;
  7. result = pow(value,2);
  8. return result;
  9. }
  10.  
  11. int main(){
  12. int value;
  13. int result;
  14. cout << "Entry a value: ";
  15. cin >> value;
  16. result = Square(value);
  17. cout << "The square of " << value << " is: " << result;
  18. }
Add Comment
Please, Sign In to add comment