Question
Select the relevant code set to fill up the blank for the following program :
static void Main(string[] args) { int x = 10, y = 20; int res; /*_______________*/ Console.WriteLine(res); }
static void Main(string[] args) { int x = 10, y = 20; int res; /*_______________*/ Console.WriteLine(res); }
Answer: Option B
Was this answer helpful ?
{
int x = 10, y = 20;
int res;
x % y == 0 ? y += 10:(x += 10);
Console.WriteLine(res);
}
Was this answer helpful ?
Submit Solution