Remember to checkout the Codesnip below to review the C++ code yourself! Feel free to copy the code, but I ask that you please provide credit if you leave the code unchanged when you use it.
//Programmer: Nazmus //Program: Value Returning Function Tutorial //Website: www.EasyProgramming.net #include <iostream> #include <string> using namespace std; int main() { int pytho(int a, int b); int main() { int a, b; float c; cout << "Please input value of 'a' and 'b': "; cin >> a >> b; pytho(a, b); c = pytho(a,b); cout << "The hypotenuse is: " << c << '.' << endl; system("pause"); } int pytho(int a, int b) { float c; c = a*a + b*b; c=sqrt(c); return (c); }