string $name; float $height; string $hairColour; $height = "167.5"; $name = "Thomas Balinski"; $hairColour = "Red"; print ("Hello, my name is " + $name + " and I recently dyed my hair " + $hairColour + ". I am also " + $height + " centimiters tall."); string $name = "chompy"; string $pet[3] = {"turtle", "capybara", "cat"}; print ("I have a pet and his name is " + $name + ". He is a " + $pet[1] + ". He also has a friend who is a " + $pet[0] + "."); global proc fashion(string $top, string $pants, string $shoes) { print ("I'm wearing a snazzy " + $top + " to go with my cool " + $pants + " that perfectly match my " + $shoes + "."); } fashion("red silk shirt","blue jeans","sweyd boots"); global proc candy(string $type, string $reason, float $cost) { print ("my favorite type of candy would have to be " + $type + " because " + $reason + ". It costs " + $cost + " dollars to buy 5 of them"); } candy("Zombie Chews", "they are very sour", "3.5");
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter