005
This commit is contained in:
12
grasshopper.v
Normal file
12
grasshopper.v
Normal file
@@ -0,0 +1,12 @@
|
||||
import readline
|
||||
|
||||
fn main() {
|
||||
mut r := readline.Readline{}
|
||||
pos := r.read_line('What is your position number: ')!
|
||||
roll := r.read_line('What is your roll number: ')!
|
||||
|
||||
p := pos.int()
|
||||
rn := roll.int()
|
||||
|
||||
print(p + rn * 2)
|
||||
}
|
Reference in New Issue
Block a user