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 types of comments in c#?

1000


What's the difference between WindowsDefaultLocation and WindowsDefaultBounds?

1191


What are mutable and immutable types in c#?

971


How to force my .net app to run as administrator on windows 7?

982


Why we need get set property in c#?

978


What is difference between an reference type and value type in C#?

1062


Describe a Struct ?

1048


What is a delegate? How can it works?

1153


Is there any sample c# code for simple threading?

940


What are circular references?

960


explain the features of static/shared classes.

959


What does char mean in c#?

948


What is winforms c#?

1020


Explain synchronous and asynchronous operations?

1004


What is the difference between constants and read-only?

928