Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- printf ("What is the height of the half-pyramids?n");
- int height = get_int();
- if (height>23)
- {
- printf("please re-enter a value less than 24n");
- }
- else if (height<0)
- {
- printf("please re-enter a value more than 0n");
- }
- else
- {
- printf("%i", height);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement