Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int n, p;
- do
- {
- cout << "\nPodaj wyskosc: ";
- cin >> n;
- if (n<=0)
- {
- cout << "\nNiepoprawny bok a - podaj jeszcze raz" << endl;
- }
- }
- while (n<=0);
- do
- {
- cout << "\nPodaj dlugosc : ";
- cin >> p;
- if (p<=0)
- {
- cout << "\nNiepoprawny bok b - podaj jeszcze raz" << endl;
- }
- }
- while (p<=0);
- {
- cout<<"*" <<endl;
- }while(n <0);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment