Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cs50.h>
- #include <stdio.h>
- int main(void)
- {
- while (true)
- {
- int n = get_int("Please type in desired height: ");
- if (n <1)
- {
- return
- }
- else if (n >8)
- {
- return
- }
- else
- {
- continue;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement