H7 Methoden - Testen - Naam opmaken

Sign in to test your solution.
using System; namespace NaamOpmaken { public class Program { public static void Main(string[] args) { //declaratie van variabelen string voornaam, achternaam, naamInformeel, naamFormeel; //JE MAG DE CODE IN DE MAIN METHODE NIET AANPASSEN Console.WriteLine("Geef je voornaam in:"); voornaam = Console.ReadLine(); Console.WriteLine("Geef je achternaam in:"); achternaam = Console.ReadLine(); // informele opmaak (standaard) naamInformeel = OpmaakNaam(voornaam, achternaam); Console.WriteLine($"Informeel: {naamInformeel}"); // formele opmaak naamFormeel = OpmaakNaam(voornaam, achternaam, true); Console.WriteLine($"Formeel: {naamFormeel}"); } // Schrijf hier je methode OpmaakNaam } }
You can submit as many times as you like. Only your latest submission will be taken into account.
Sign in to test your solution.