Untitled
#include <iostream> using namespace std; int main() { int a, P,b; cout << "podaj liczbe do szecianu\n"; cin >> a; while(a<=0) { cout << "liczba musi byc dodatnia\n"; cin >> a; } P = 6 * a * 2; cout<<"twoja liczba to " << P << "\n"; }
Leave a Comment