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;
}
}
Answer Posted / nitish yadav
9,7,5,3,1
Is This Answer Correct ? | 16 Yes | 1 No |
Post New Answer View All Answers
What is c# entity framework?
What does int32 mean?
Where do we use serialization in c#?
What is difference between destructor and finalize?
What problem does Delegate Solve?
Is c# 8 released?
What is as keyword in c#?
windows c# using datagridview in edit form sql server
Define the term immutable ?
What is dll hell, and how does .net solve it?
How many constructors can a class have in c#?
what are pointer types in c#
How a two-dimensional array declared in C#?
Can you create an instance of a static class?
Differentiate between method overriding from method overloading with its functionality?