skip to main content
Quorum
Learn
Hour of Code
Reference
Libraries
Download
Bugs
My Projects
Login
Quorum Login
Login
Cancel
Sign up for an account
"IP-noDNS" by Quorum
This is a public project. Anyone can view it.
IP-noDNS
Code Area
1
use Libraries.Compute.Random class Main Random ran boolean validInput = false text userInput = "0" action Main repeat until validInput = true userInput = input("Enter your friend's IP address") if userInput = "90.124" or userInput = "8.71" or userInput = "43.255" or userInput = "9.154" or userInput = "80.211" integer userInt = ran:RandomIntegerBetween(0, 4) if userInt = 0 output "Hi my name is Jane." elseif userInt = 1 output "Hi my name is Kit" elseif userInt = 2 output "Hi my name is Greg" elseif userInt = 3 output "Hi my name is Mary" elseif userInt = 4 output "Hi my name is Beth" end validInput = true else output "You entered invalid IP address. Enter valid address" validInput = false end end end end
Build (CTRL+B)
Run (CTRL+R)
Stop Program
Save this Project
Project Name:
Save Project
Cancel
Load a Project
Load Project
Cancel
Save
Load
Embed
Output Area