+ 1

C# 27.2

Не могу найти ошибку using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { Settings("James", 25, "Spanish"); Settings("Tom", 36); } //завершите метод static void Settings(int name , int age , string = lang = "English") { Console.WriteLine("Name: " + name); Console.WriteLine("Age: " + age); Console.WriteLine("Language: " + lang); } } }

11th Sep 2021, 5:48 AM
Dolgonj
Dolgonj - avatar
1 Odpowiedź
+ 8
Problem in the method's signature static void Settings(string name, int age, string lang = "English") { Console.WriteLine("Name: {0}", name); Console.WriteLine("Age: {0}", age); Console.WriteLine("Language: {0}", lang); }
11th Sep 2021, 6:00 AM
Ipang