0

Fill in the blanks to declare a method that has two int parameters with default values 6 and 8, respectively, and displays their

static void Test(int x 6, int y= ) { Console.WriteLine(x*y); } static void Main(string[] args) { Test(x:7, 11); }

18th Apr 2021, 3:02 PM
Ilya Ermishin
Ilya Ermishin - avatar
3 ответов
0
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { //Fill in the blanks to declare a method that has two int parameters with default values 6 and 8, respectively, and displays their static void Test(int x ){ int y=6; Console.WriteLine(x*y); } static void Main(string[] args) { Test(7); } } }
18th Apr 2021, 3:10 PM
Atul [Inactive]
0
I think so you want to implement this?
18th Apr 2021, 3:10 PM
Atul [Inactive]
0
See you have to take 2 parameters to take 11 too
18th Apr 2021, 3:10 PM
Atul [Inactive]