The code is
fmt.Println("Enter a number : ") // a new line is automatically printed here. How to cancel that ?
fmt.Scanln(&a)
The output is
Enter a number :
45
I want the output as
Enter a number : 45
The code is
fmt.Println("Enter a number : ") // a new line is automatically printed here. How to cancel that ?
fmt.Scanln(&a)
The output is
Enter a number :
45
I want the output as
Enter a number : 45