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

0 Answers  


Which are access modifiers available in c#?

0 Answers  


what are the differences between a class and structure

0 Answers   Cognizant,


Can you allow class to be inherited, but prevent the method from being over-ridden?

2 Answers   Mind Tree,


Is array a collection c#?

0 Answers  


What is extended class in c#?

0 Answers  


When do we generally use destructors to release resources?

0 Answers  


How long has c# been around?

0 Answers  


What is attribute and reflection in c#?

0 Answers  


What are c# i/o classes?

0 Answers  


What is the difference between func and action delegate?

0 Answers  


What is the difference between Abstract and Interface?

22 Answers   Agile Software, FER, HCL, Sys Universe,


Categories