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 difference between private and static constructor?

0 Answers  


1. What is lazy loading? 2. What is delay signing? 3. How to transfer view object to presenter in MVP? 4. How to create a generic class? 5. What is Ajax object? 6. What is explicit interface implementation? 7. I1, I2 interfaces have same methods (say PrintName) explicitly implemented in class C1. Now how to call PrintName method from I1? 8. I have a list of Customers. List the customer with maximum orders using LINQ.

1 Answers   Aptron, Volvo,


What are the steps to create an assembly and add it to the gac?

0 Answers  


How do I create a .exe file?

0 Answers  


What does public mean in c#?

0 Answers  


What do you understand by 'access specifiers' in C#?

0 Answers   Genpact,


What is writeline in c#?

0 Answers  


Distinguish between continue and break statement?

0 Answers  


Define Virtual folder?

0 Answers   Arigo Infotech,


What do u mean by thread safe?

0 Answers  


What is the use of ispostback in c#?

0 Answers  


how can i get this 123456789 1234 6789 123 789 12 89 1 9

1 Answers   Excel,


Categories