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 will be the output of the given below coding. using System; public class Exercise { s..

Answer / nitish yadav

9,7,5,3,1

Is This Answer Correct ?    16 Yes 1 No

Post New Answer

More C Sharp Interview Questions

Is it possible to force garbage collector to run?

0 Answers  


which datatype i have to use we i need dynamic size.for eg. empname .in first row it have only five chars.but next row it have 100 chars.

3 Answers  


I need code to connect ohter systems in the LAN and i want to display my website image over there and i want explain as a admin through phone. So i need code to access other system using C-Sharp. Any one please help me.Please give me the code. Advace thanks.

0 Answers   Excel,


Structs are not reference types. Can structs have constructors?

0 Answers  


What is the difference between == and object.equals?

0 Answers  






example of uniary operators and binary operators

0 Answers  


What is default method in c#?

0 Answers  


What is int32 maxvalue?

0 Answers  


What is the difference between webgarden and webfarm?

1 Answers   Mphasis,


Can we set image Source dynamically using C# in WPF application?

0 Answers   Tech Mahindra,


How can we Achieve Late binding in C#.Can any give one example.

5 Answers   Value Labs,


Why do we use reflection in c#?

0 Answers  


Categories