what will be the output of the given below coding.
using System;
public class Exercise
{
static void OddNumbers(int a)
{
if (a >= 1)
{
Console.Write("{0}, ", a);
a -= 2;
OddNumbers(a);
}
}
public static int Main()
{
const int Number = 9;
Console.WriteLine("Odd Numbers");
OddNumbers(Number);
Console.WriteLine();
return 0;
}
}
What is an abstract class c#?
How to generate strong name key file or which command is used to generated strong name key file?
How we convert private assembly into public assembly?
What is the difference between CreateObject() and GetObject()?
What is the use of convert toint32 in c#?
Can int be null in c#?
What is the raise event used for?
What is the difference between webgarden and webfarm?
What is a type c#?
Explain the difference between a struct and a class?
When should I throw an exception?
What is the difference between the debug class and trace class? Documentation looks the same.
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)