-3

Sorry if my question isn't that clear. We usually write it like:

dim num as integer
Console.writeline("Input num")
num = console.readline()

How can you write that input num and the value on num on the same line, what I wrote will do it on two different lines...

GSerg
  • 76,472
  • 17
  • 159
  • 346

1 Answers1

1

Using Write will prevent adding a trailing newline.

Console.Write("Input num: ")
Dim num = Integer.Parse(Console.ReadLine())
Nathan Tuggy
  • 2,237
  • 27
  • 30
  • 38
dovid
  • 6,354
  • 3
  • 33
  • 73