Q. What will be the output of the following C# code, if the input is 123?
Code:using System;
namespace MyApplication {
class Program {
static void Main(string[] args) {
Console.WriteLine("Enter a number:");
int num = Console.ReadLine();
Console.WriteLine("Given number is: " + num);
}
}
}
β
Correct Answer: (D)
Error