Facebook
From Fulop Bernadett, 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: 167
  1. class Program
  2. {
  3.     static void Main()
  4.     {
  5.         MyPresentation();
  6.     }
  7.    static void MyPresentation(){
  8.     string favoriteVerse = @"  
  9.      Yellow diamonds in the light
  10.      Now we're standing side by side
  11.      As your shadow crosses mine
  12.      What it takes to come alive";
  13.     string name = "Fulop Bernadett";
  14.     string profile = "Informatics";
  15.     string hobby = "Walking";
  16.     DateTime birthDate = new DateTime(2003, 7, 18);
  17.     Console.WriteLine("Favorite Music Verse:");
  18.     Console.WriteLine(favoriteVerse);
  19.     Console.WriteLine();
  20.     Console.WriteLine($"Hello, my name is {name}!");
  21.     Console.WriteLine($"Profile: {profile}");
  22.     Console.WriteLine($"Hobby: {hobby}");
  23.     Console.WriteLine($"Birth Date: {birthDate:MMMM dd, yyyy}");
  24.   }
  25. }
  26.