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 use of singleton class in c#?
What does do in c#?
What is boxing in c#?
What are access modifiers in c#?
What debugging tools come with the .NET ssSDK?
How do you sort a list in c#?
What Is A Satellite Assembly?
What is a function c#?
How many destructors can a class have?
How do you pronounce c#?
What does void mean unity?
What is xml document how do you open it?
What is anonymous class in c#?
Does unity require coding?
How do I convert a string to an int in c#?