Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are the access modifiers in c#?

984


What is difference between dictionary and hashtable?

1073


Why singleton is sealed?

897


What is the compiler of c#?

989


What does console writeline do?

957


Can you pass value types by reference to a method?

993


What is the difference between null and string empty in c#?

947


How do I develop c# apps?

949


What are c# types?

1123


What is interface inheritance?

984


What are the Types of JIT and what is econo-JIT

1305


Why to use lock statement in c#?

981


What are escape sequences explain with example?

1018


What is the full form of GAC? Explain its uses?

1055


What is the use of base keyword? Tell me a practical example for base keyword’s usage?

972