Untitled

mail@pastecode.io avatar
unknown
plain_text
5 months ago
274 B
2
Indexable
#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