Facebook
From Levi, 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: 160
  1. class Program
  2. {
  3.     static void Main()
  4.     {
  5.         // function calls here
  6.       LeventesPresentation();
  7.     }
  8. }
  9.     static void LeventesPresentation()
  10.     {
  11.         int age = 21;
  12.         string firstName = "Kaffai";
  13.         string lastName = "Levente";
  14.         string profile = "Computer Science student";
  15.         string hobby = "walking my dog and to make people laugh";
  16.         string favoriteMusic =
  17.         @"I'm a Barbie girl, in the Barbie world
  18. Life in plastic, it's fantastic
  19. You can brush my hair, undress me everywhere
  20. Imagination, life is your creation";
  21.         Console.WriteLine(@$"Hello, my name is {firstName} {lastName} and I'm {age} years old.
  22. Im a {profile} and my hobby is {hobby}." + "n");
  23.         Console.WriteLine($"One verse of my favourite music is:nn{favoriteMusic}");
  24.     }