Coding for dummies

on Thursday, April 17, 2008
public void mood (string mood_type)
{
if (mood_type == "happy")
{
return smile;
}
else if (mood_type == "sad")
{
return tears;
}
else
{
return depression;
}
}

public static void()
{
string mood_type = "";

string question = "how are you doing today?";

input mood_type;

mood(mood_type)

print mood.toUpper();
}


------------------------------------------------------------

Your moodtype is HAPPY

0 comments: