use "std"

pub fn run {
	for {
		std.printf "first number: "
		let a = std.read_i32
		std.printf "second number: "
		let b = std.read_i32
		std.printf "enter operation [+-/*]: "
		let op = std.read_char
		let res: i32
		switch op {
		case '+'
			res = a + b
			break
		case '-'
			res = a - b
			break
		case '/'
			res = a / b
			break
		case '*'
			res = a * b
			break
		case
			std.println "Invalid operation"
		}

		std.printf "Final answer: %d\n" res
	}
}

