Guest User

Untitled

a guest
Nov 2nd, 2014
308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int n, p;
  7.  
  8. do
  9. {
  10. cout << "\nPodaj wyskosc: ";
  11. cin >> n;
  12. if (n<=0)
  13. {
  14. cout << "\nNiepoprawny bok a - podaj jeszcze raz" << endl;
  15. }
  16. }
  17. while (n<=0);
  18.  
  19. do
  20.  
  21. {
  22.  
  23. cout << "\nPodaj dlugosc : ";
  24. cin >> p;
  25. if (p<=0)
  26. {
  27. cout << "\nNiepoprawny bok b - podaj jeszcze raz" << endl;
  28. }
  29. }
  30. while (p<=0);
  31.  
  32.  
  33.  
  34.  
  35.  
  36. {
  37. cout<<"*" <<endl;
  38.  
  39. }while(n <0);
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46. return 0;
  47. }
Advertisement
Add Comment
Please, Sign In to add comment