Qtr No. 213, New Town Yehlanka Indore 454775
What is the output of the code snippet given below?
class Program
{
static void Main(string[] args)
{
double[] myArr = { 12.56, 12.34, 13 };
foreach (double number in myArr)
{
Console.WriteLine("First statement in the loop");
switch (Convert.ToInt32(number))
{
case 12:
Console.WriteLine("Case 12");
continue;
case 13:
Console.WriteLine("Case 13");
break;
}
Console.WriteLine("Last statement in the loop");
}
}
}
To get all Infosys Certified CSharp Programmer Exam questions Join Telegram Group https://bit.ly/infy_premium_group
We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.
Qtr No. 213, New Town Yehlanka Indore 454775
admin@prepflix.in
Updated on Tue, 1 Jul 2025