Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. {
  2. printf ("What is the height of the half-pyramids?n");
  3. int height = get_int();
  4. if (height>23)
  5. {
  6. printf("please re-enter a value less than 24n");
  7. }
  8. else if (height<0)
  9. {
  10. printf("please re-enter a value more than 0n");
  11. }
  12. else
  13. {
  14. printf("%i", height);
  15. }
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement