// Repeat reading a real number and computing its square root 
// If the user wants to continue, he/she enters y or Y. If he/she 
// wants to quit, he/she enters any other character.
#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;
}
