Facebook
From Kati Bato, 6 Months ago, written in C#.
This paste is a reply to Working with strings from Palma - view diff
Embed
Download Paste or View Raw
Hits: 157
  1. class Program
  2. {
  3.    static void KatisPresentation()
  4.         {
  5.             string firstName = "Kati";
  6.             string lastName = "Bato";
  7.             string myName = $"My name is: {firstName} {lastName}";
  8.             string profile = "Informatica";
  9.             string myProfile = $"My profile is: {profile}";
  10.             string[] hobbys = {"drawing", "reading", "danceing"};
  11.             string myHobbys = $"My bobbys are: {hobbys[0]}, {hobbys[1]}, {hobbys[2]}";
  12.             string myBirthDate = "My birth date is: 2003 March 26";
  13.  
  14.             Console.WriteLine(myName+"n"+myProfile+"n"+myHobbys+"n"+myBirthDate+"n");
  15.  
  16.             string[] @for = {"You, who's dreaming while looking at me",
  17.                              "I'm always here behind you, so don't worry too much",
  18.                              "If you're afraid to crash, I'll willingly receive you",
  19.                              "So you don't suffer like I did",
  20.                              "You, who sacrifice your sleep for your dreams, it's okay to rest",
  21.                              "For today, don't even dream",
  22.                              "When you silently give me a light smile",
  23.                              "Only then, I feel a little relieved",
  24.                              "(Agust D - Snooze ft. Ryuichi Sakamoto & WOOSUNG)"};
  25.  
  26.             Console.WriteLine("One verse of your favorite music:n");
  27.  
  28.             foreach (string @as in @for)
  29.             {
  30.                 Console.WriteLine("t {0}", @as);
  31.             }
  32.         }
  33.  
  34.  
  35.     static void Main()
  36.     {
  37.         KatisPresentation();
  38.     }
  39. }
  40.