VNL
Jump to navigation
Jump to search
- This article is not detailed enough and needs to be expanded. Please help us by adding some more information.
VNL is designed by Steve Abel.
VNL = Python + C++ + My code.
Commands
Not on display.
Examples
Hello, world!
print("Hello, world!")
A+B
var a, b input(a) input(b) var c = a + b print(c)
Guessing Number
include <random> <*> a = input(a, "Please Input how many life do you have(If you guessing wrong, your life will decrease by 1): ") if a == '': a = 10 a = int(a) answer = randint(-50, 50) while a > 0: { b = input(b, "Please Input what number are you guessing: ") b = int(b) if b == answer: { print("That is it! Thanks for playing!") break } elif b > answer: { a -= 1 printf("%d is too big! Try again(%d lifes left): ", b, a) } elif b < answer: { a -= 1 printf("%d is too small! Try again(%d lifes left): ", b, a) } }