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