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

Oops concepts ?

2 Answers   Accenture, Digital GlobalSoft,


What is default boolean value in c#?

0 Answers  


When is a class declared as a class abstract?

0 Answers   Siebel,


What is Named parameter in C#?

0 Answers  


Are tuples mutable c#?

0 Answers  


Why are dynamic link library used over static one?

0 Answers   C DAC,


Is javascript harder than c#?

0 Answers  


Can interface have virtual methods in c#?

0 Answers  


Explain the types of assemblies in .net?

0 Answers  


Name which controls do not have events?

0 Answers  


Define interface class in c#?

0 Answers  


Where is the keyword void used?

0 Answers  


Categories