Facebook
From Dezső Szabolcs, 1 Year ago, written in C#.
This paste is a reply to Re: Re: Working with strings from Dezső Szabolcs - view diff
Embed
Download Paste or View Raw
Hits: 224
  1. class Program
  2. {
  3.     static void Main()
  4.     {
  5.        FavoriteSong();
  6.         SzabiPersonalInfomations("Szabi", 20, "Informatics", new DateTime(2003, 06, 21), "programming");
  7.     }
  8.  
  9.    
  10.    static void SzabiPersonalInfomations(string name = "Szabi", int age = 20, string profile = "Informatics", DateTime birth = new(), string hobby = "programming") {
  11.         Console.WriteLine($"My name is {name}.");
  12.         Console.WriteLine($"I'm {age} years old.");
  13.         Console.WriteLine($"I'm studying {profile}.");
  14.         Console.WriteLine($"I was born in {{{birth.Year} - {birth.Month} - {birth.Day}}}.");
  15.         Console.WriteLine($"My hobby is {hobby}.");
  16.     }
  17.  
  18.     static void FavoriteSong() {
  19.           Console.WriteLine(@"My favorite song is ""béke"" by Azariah.");
  20.           string song = "\t\"ge-ge-ge-ge-get up, standup\n\tand take control\n\tvedd kezedbe a sorsod\n\tnincs rosszabb én ezt nem hiszem el\n\tha hív a csapat, akkor blaze sum more\n\tés látod majd a gondod, érzed nem is olyan nagy a baj..\"";
  21.           Console.WriteLine(song);
  22.       }
  23. }
  24.