Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
336 B
3
Indexable
Never
#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;

			cout << "liczba musi byc dodatnia\n";
			cout << "\n";

	}

	P = 6 * a * 2;
	cout<<"twoja liczba to" << P << "\n";

}
Leave a Comment