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 instantiating a class?

0 Answers  


What is a view? What is the use of it?

0 Answers   Accenture,


What are custom exceptions? Why do we need them?

0 Answers  


What is an inheritance in c#?

0 Answers  


Why is aws serverless?

0 Answers  


What is float in unity?

0 Answers  


Expalin the way you implement inheritance by using VB.NET/C#?

0 Answers   Siebel,


Why do we use static class in c#?

0 Answers  


What is a callback c#?

0 Answers  


What is the difference between console and windows application?

0 Answers  


What is object pool in .net?

0 Answers  


What is virtual class in C#?

0 Answers   B-Ways TecnoSoft,


Categories