Skip to content

Instantly share code, notes, and snippets.

@binary10
Created April 14, 2023 22:41
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 binary10/9988d26a0101f8fe74dd92b61aed0a73 to your computer and use it in GitHub Desktop.
Save binary10/9988d26a0101f8fe74dd92b61aed0a73 to your computer and use it in GitHub Desktop.
# A model of computation
for(i in 1:3)
{
print("To calculate two times two, please enter: 2*2")
scan(what="char")
print("Sorry, that's incorrect.")
}
print("To calculate two times two, please enter: 2*2")
scan(what="char")
print("4")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment