fork download
  1. uses java.util.Scanner
  2. uses java.lang.System
  3.  
  4. var scanner = new Scanner(System.in)
  5.  
  6. print("Enter your name:")
  7. var name: String = scanner.nextLine()
  8.  
  9. print("Enter your age:")
  10. var age: int = scanner.nextInt()
  11.  
  12. print("Enter your height:")
  13. var height: double = scanner.nextDouble()
  14.  
  15. print("Name: $name, Age: $age, Height: $height")
  16.  
Success #stdin #stdout 2.84s 170336KB
stdin
1
2
88
42
10
stdout
Enter your name:
Enter your age:
Enter your height:
Name: $name, Age: $age, Height: $height