Facebook
From Dezső Szabolcs, 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: 200
  1. class Program
  2. {
  3.     static void Main()
  4.     {
  5.         SzabiPersonalInfomations("Szabi", 20, "Informatics", new DateTime(2003, 06, 21), "programming");
  6.     }
  7.  
  8.    
  9.    static void SzabiPersonalInfomations(string name = "Szabi", int age = 20, string profile = "Informatics", DateTime birth = new(), string hobby = "programming") {
  10.         Console.WriteLine($"My name is {name}.");
  11.         Console.WriteLine($"I'm {age} years old.");
  12.         Console.WriteLine($"I'm studying {profile}.");
  13.         Console.WriteLine($"I was born in {{{birth.Year} - {birth.Month} - {birth.Day}}}.");
  14.         Console.WriteLine($"My hobby is {hobby}.");
  15.     }
  16. }
  17.  

Replies to Re: Working with strings rss

Title Name Language When
Re: Re: Working with strings Dezső Szabolcs csharp 6 Months ago.