Skip to content

Instantly share code, notes, and snippets.

@alexandreelise
Last active October 7, 2023 19:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexandreelise/f50030ea09e265a55cd63d08d62f76f0 to your computer and use it in GitHub Desktop.
Save alexandreelise/f50030ea09e265a55cd63d08d62f76f0 to your computer and use it in GitHub Desktop.
Tiny hungry foodie kotlin script originally written in PHP
/**
* Tiny hungry foodie kotlin 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
*/
fun main() {
var food: String?
do{
println("I am hungry!")
food = readLine()
println("Miam! Miam! " + food)
}while(food!!.compareTo("end") != 0)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment