#include <iostream>
#include <iomanip>

using namespace std;

main()
{
	float gleitkommazahl = 123412;
	char ende = 'j';
	
	// Nichtabweisende Schleife
	do {
		// Erweiterung aus Aufgabe 2.b
		cout << "\nGleitkommazahl eingeben: ";
		cin >> gleitkommazahl;
		
		// Erweiterungen aus Aufgabe 3.b
		cout << setprecision(20);
		cout << setiosflags(ios::fixed);
		cout << setiosflags(ios::scientific);
		cout << setiosflags(ios::left);
		cout << setfill('.');
		cout << '\n' << (gleitkommazahl+10)/2;
		
		// cout << '\n' << setw(20) << gleitkommazahl;
		cout << '\n' << gleitkommazahl;
		
		// Erweiterung aus Aufgabe 2.a
		cout << "\nProgramm wiederholen?(j/n): ";
		cin >> ende;
	} 
	while ((ende == 'j') || (ende == 'J'));
}


