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 is an abstract class c#?

0 Answers  


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

0 Answers   CitiusTech,


How we convert private assembly into public assembly?

0 Answers   Wipro,


What is the difference between CreateObject() and GetObject()?

0 Answers   CGI,


What is the use of convert toint32 in c#?

0 Answers  


Can int be null in c#?

0 Answers  


What is the raise event used for?

1 Answers   Wipro,


What is the difference between webgarden and webfarm?

1 Answers   Mphasis,


What is a type c#?

0 Answers  


Explain the difference between a struct and a class?

0 Answers  


When should I throw an exception?

0 Answers  


What is the difference between the debug class and trace class? Documentation looks the same.

0 Answers  


Categories