Facebook
From Kukta Norbert - Attila, 1 Year ago, written in C#.
This paste is a reply to Working with strings from Palma - go back
Embed
Viewing differences between Working with strings and Re: Working with strings
class Program
{
    
Issue4 {

    public 
static void Main()
    
Main (string[] args) {

        JohnsPresentation();

    }

    public static void JohnsPresentation () 
{
        // function calls here
string thing1 = "nFavourite Verse: nn";
        Console.Write(thing1);
        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";
        Console.WriteLine(verse);

        string thing2 = "Personal Information:nn";
        Console.Write(thing2);

        string name = "Kukta Norbert";
        string interpolatedName = $"Name: {name}n";
        Console.Write(interpolatedName);

        string profile = "Informatics";
        string interpolatedProfile = $"Profile: {profile}";
        Console.WriteLine(interpolatedProfile);

        string birthDate = "28.01.2003";
        string interpolatedBirthDate = $"BirthDate: {birthDate}";
        Console.WriteLine(interpolatedBirthDate);

        string hobby = "Gaming";
        string interpolatedHobby = $"Hobby: {hobby}";
        Console.WriteLine(interpolatedHobby);
    }
}