// Repeat reading a real number and computing its square root
// as long as the character entered is different than n and N
// stops when the character entered is n or N.
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
	float x;
	char ch = 'y';
	//while (ch != 'n' && ch != 'N')
	while (toupper(ch) != 'N')
	{
		system("cls");
		cout << "Enter a real number: ";
		cin >> x;
		cout << sqrt(x) << endl;
		cout << "Continue? If not press n or N: ";
		cin >> ch;
	}
	system("pause");
	return 0;
}
