SHARE
TWEET

Untitled

a guest Mar 22nd, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <cs50.h>
  2. #include <stdio.h>
  3.  
  4. int main(void)
  5. {
  6.     while (true)
  7.     {
  8.     int n = get_int("Please type in desired height: ");
  9.         if (n <1)
  10.         {
  11.         return
  12.         }
  13.         else if (n >8)
  14.         {
  15.         return
  16.         }
  17.         else
  18.         {
  19.         continue;
  20.         }
  21.     }
  22.  
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top