Hey i'm trying to do a program that returns the answer to a squareroot!!! Please help...the answer I keep on getting is "1". Frustrating frustrating.
Code:#include <iostream> using namespace std; float Squareroot(float x); int main() { float numberA; float squrtquotient; cout << "Hey maya here's your squareroot!" << endl; cout << "Enter your number to squareroot and you'll be off into happyland!\n\t" ; cin >> numberA; squrtquotient = Squareroot(numberA); cout << "\t" << squrtquotient << endl; cout << "\t\tWOWSERS!!!!!!!!!!!!!!" << endl; cin.get(); return 0; } float Squareroot(float x) { cin.get(); return (x/x) ; }