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
"Modulo Calculator" by Projects
This is a public project. Anyone can view it.
Modulo Calculator
Code Area
1
text newLine = "" newLine = newLine:GetLineFeed() boolean running = true repeat while running text firstNum = input("X MOD Y" + newLine + newLine + "Input the number X (leave blank to exit, results shown after exit):") if firstNum:IsEmpty() running = false else integer num1 = 0 check num1 = cast(integer, firstNum) text secondNum = input(firstNum + " MOD Y" + newLine + newLine + "Input the number Y:") integer num2 = cast(integer, secondNum) output(num1 + " MOD " + num2 + " = " + num1 mod num2) detect error text temp = input("Error: You must only input digits") 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