You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
552 B
Zig
25 lines
552 B
Zig
4 years ago
|
//
|
||
|
// Here's a fun one: Zig has multi-line strings!
|
||
|
//
|
||
|
// To make a multi-line string, put '\\' at the beginning of each
|
||
|
// line just like a code comment but with backslashes instead:
|
||
|
//
|
||
|
// const two_lines =
|
||
|
// \\Line One
|
||
|
// \\Line Two
|
||
|
// ;
|
||
4 years ago
|
//
|
||
4 years ago
|
// See if you can make this program print some song lyrics.
|
||
|
//
|
||
|
const std = @import("std");
|
||
|
|
||
|
pub fn main() void {
|
||
4 years ago
|
const lyrics =
|
||
4 years ago
|
Ziggy played guitar
|
||
|
Jamming good with Andrew Kelley
|
||
|
And the Spiders from Mars
|
||
|
;
|
||
|
|
||
4 years ago
|
std.debug.print("{s}\n", .{lyrics});
|
||
4 years ago
|
}
|