Hello World Example by Manda Simpson

PHOTO EMBED

Wed Jun 26 2024 22:11:58 GMT+0000 (Coordinated Universal Time)

Saved by @nouhad #mel

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");
content_copyCOPY