Facebook
From Kukta Norbert - Attila, 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: 144
  1. class Issue4 {
  2.  
  3.     public static void Main (string[] args) {
  4.  
  5.         JohnsPresentation();
  6.  
  7.     }
  8.  
  9.     public static void JohnsPresentation () {
  10.         string thing1 = "nFavourite Verse: nn";
  11.         Console.Write(thing1);
  12.         string verse = "We don't need no education nWe don't need no thought control nNo dark sarcasm in the classroom nTeacher, leave them kids alone n";
  13.         Console.WriteLine(verse);
  14.  
  15.         string thing2 = "Personal Information:nn";
  16.         Console.Write(thing2);
  17.  
  18.         string name = "Kukta Norbert";
  19.         string interpolatedName = $"Name: {name}n";
  20.         Console.Write(interpolatedName);
  21.  
  22.         string profile = "Informatics";
  23.         string interpolatedProfile = $"Profile: {profile}";
  24.         Console.WriteLine(interpolatedProfile);
  25.  
  26.         string birthDate = "28.01.2003";
  27.         string interpolatedBirthDate = $"BirthDate: {birthDate}";
  28.         Console.WriteLine(interpolatedBirthDate);
  29.  
  30.         string hobby = "Gaming";
  31.         string interpolatedHobby = $"Hobby: {hobby}";
  32.         Console.WriteLine(interpolatedHobby);
  33.     }
  34. }
  35.