Facebook
From Kádár Ákos-Gergő, 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: 164
  1. class Program
  2. {
  3.     static void Main()
  4.     {
  5.        
  6.     }
  7.   public static void AkosPresentation(){
  8.         string[] @hobbies = {"football", "watching Formula 1", "listening to music"};
  9.         Console.WriteLine("En nem fuggok toled, te fuggsz rajtam");
  10.         Console.WriteLine($"My name is AkosnMy nickname is 'Gerii'nI'm 20 years old");
  11.         Console.Write("My hobbies are: ");
  12.         for(int i = 0; i < @hobbies.Length; i++){
  13.             Console.Write(@hobbies[i]);
  14.             if(i < @hobbies.Length - 1){
  15.                 Console.Write(", ");
  16.             }
  17.         }
  18.         DateTime BirthDate = new DateTime(2003,10,10);
  19.         Console.WriteLine($"nMy birthdate is: {BirthDate:yyyy/MMM/dd}");
  20.  
  21.     }
  22. }
  23.