Facebook
From Kati Bato, 1 Year ago, written in C#.
This paste is a reply to Working with strings from Palma - go back
Embed
Viewing differences between Working with strings and Bato Kati
class Program
{
   static void KatisPresentation()
        {
            string firstName = "Kati";
            string lastName = "Bato";
            string myName = $"My name is: {firstName} {lastName}";
            string profile = "Informatica";
            string myProfile = $"My profile is: {profile}";
            string[] hobbys = {"drawing", "reading", "danceing"};
            string myHobbys = $"My bobbys are: {hobbys[0]}, {hobbys[1]}, {hobbys[2]}";
            string myBirthDate = "My birth date is: 2003 March 26";

            Console.WriteLine(myName+"n"+myProfile+"n"+myHobbys+"n"+myBirthDate+"n");

            string[] @for = {"You, who's dreaming while looking at me",
                             "I'm always here behind you, so don't worry too much",
                             "If you're afraid to crash, I'll willingly receive you",
                             "So you don't suffer like I did",
                             "You, who sacrifice your sleep for your dreams, it's okay to rest",
                             "For today, don't even dream",
                             "When you silently give me a light smile",
                             "Only then, I feel a little relieved",
                             "(Agust D - Snooze ft. Ryuichi Sakamoto & WOOSUNG)"};

            Console.WriteLine("One verse of your favorite music:n");

            foreach (string @as in @for)
            {
                Console.WriteLine("t {0}", @as);
            }
        }


    static void Main()
    {
        // function calls here
KatisPresentation();
    }
}