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 is overloading in c#?

913


explain the three services model commonly know as a three-tier application.

982


What is the major difference between a custom control and user control?

1041


Can a struct inherit from an interface in c#?

1001


How do you access a constant field declared in a class?

901


Why extension method is static?

906


What is an arraylist in c#?

1070


Define sealed classes in c#?

911


Why do we use hashtable in c#?

954


What is the difference between class and namespace?

960


How do I simulate optional parameters to com calls?

944


Any problem found in vs.et

993


Constructor to an arbitrary base constructor?

972


What is object array in c#?

957


What is writeline?

875