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); }
3 Answers
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);
}
}
}
0
I think so you want to implement this?
0
See you have to take 2 parameters to take 11 too