Last active
October 7, 2023 19:39
-
-
Save alexandreelise/d499670dfba205b4b4d867e3ef1b4706 to your computer and use it in GitHub Desktop.
Tiny hungry foodie Swift script. Originally made in PHP.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Tiny hungry foodie swift script | |
* | |
* @package tinyhungryfoodie | |
* @author Mr Alexandre J-S William ELISÉ <code@apiadept.com> | |
* @copyright (c) 2009 - present . Mr Alexandre J-S William ELISÉ . Tous droits réservés. | |
* @license MIT | |
* @link https://apiadept.com | |
*/ | |
var food: String? = "water" | |
repeat { | |
print("I am hungry!") | |
food = readLine() | |
print("Miam! Miam! \(food ?? "water")") | |
} while (food != "end") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment