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

Explain the differences between static, void and public in c#?

0 Answers  


How long does it take to learn c# for unity?

0 Answers  


Why is it a bad idea to throw your own exceptions?

1 Answers   Visual Soft,


What is icollection in c#?

0 Answers  


what is application domain?

4 Answers   Kanbay,


Classes and structs can be declared as static, is this statement true or false?

0 Answers  


main concept of c sharp

3 Answers  


1) how to delete duplicate records from table in sql server 2005 2) what is run time polymorphism

4 Answers   HCL, IBM, L&T,


What is a delegate in c#?

0 Answers  


What is Event - Delegate?

0 Answers  


what is collections in .net? why we use?

0 Answers  


How to assign Null value to Var?

0 Answers   HCL,


Categories