This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "os" | |
import "fmt" | |
import "strings" | |
func main() { | |
fmt.Println("Hello World from Go!") | |
args := os.Args[1:] | |
fmt.Println(fmt.Sprintf("%v Args: [%v]", len(args), strings.Join(args, ", "))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This program won't run properly without an input. | |
Try with: abc | |
*/ | |
fun main(args: Array<String>) { | |
println("Hello World from Kotlin!") | |
println(readLine()!!) | |
} |