Skip to content

Latest commit

 

History

History
23 lines (23 loc) · 516 Bytes

README.md

File metadata and controls

23 lines (23 loc) · 516 Bytes

REPLANG EXAMPLE PROGRAM

func math() // Run function "math"    
{ 
  ques: sys.input("What is 1+1?") // Request user input     
  if ques == "2" 
  {          
    sys.log("Correct!") // Like console.log()  
  }    
  else 
  {          
    sys.log("Incorrect!") 
  }  
  end // End the if statement 
} 
sys.start()
start.name("My Program") // Initialize Program
{
sys.log(sys.name.add("\n")) // "My Program" // sys.name is the name of the program
sys.load(func.math())
sys.stop() // halt the program
}