" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2025 KUDO.TIPS - All rights reserved.
#include <cmath>
using namespace std;
int main()
{
bool czyKoniec = false;
int wejscie;
const int a = 8;
while(!czyKoniec)
{
cout << "MENU\n1 - potega\n2 - pierwiastek\n3 - Koniec\n";
cin >> wejscie;
switch (wejscie)
{
case 1: cout << "Wynik to: " << pow(a, 2) << endl;
break;
case 2: cout << "Wynik to: " << sqrt(a) << endl;
break;
case 3: czyKoniec = true;
break;
default:
cout << "Niepoprawna opcja\n";
}
}
}