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;
}
}



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

What are the different types of delegation?

0 Answers  


What is the difference between static and private constructor?

0 Answers  


How to generate strong name key file or which command is used to generated strong name key file?

0 Answers   CitiusTech,


i want o/p 011242110 in c# code.

0 Answers   TCS,


What is fcl in c#?

0 Answers  


What are methods c#?

0 Answers  


What are the types of comment in c# with examples?

0 Answers  


Is class reference type c#?

0 Answers  


Constructor to an arbitrary base constructor?

0 Answers  


What is a c sharp?

0 Answers  


What is list collection in c#?

0 Answers  


Should I make my destructor virtual?

0 Answers  


Categories