1
vote
Syntax test
C:
int main(void)
{
puts("test");
return 0;
}
Go:
package main
import "os"
func main() {
_, err := os.Stdout.WriteString("test")
if err != nil {
_, _ = os.Stderr.WriteString("fail")
}
}
Ruby:
10.times { |n| puts "test_#{ n }" }
XML:
<html>
<body>
<h1>test</h1>
</body>
</html>
0 comments