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...


Hello Sir, Thanks for the Solution but, can you pls. Explain
the coding for the Static Function & static variable from
the below coding....waiting for Ans.


class fact

{

public static void Main()

{

fact f=new fact();

int x=1; //Declaration of x as 1

int k=Convert.ToInt32(Console.ReadLine());

for(int i=1;i<=k;i++)

{

x= x *i;

}

System.Console.WriteLine(x);

}
}


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Sharp Code Interview Questions

Code for Working with Files under a Directory?

1 Answers  


How to export 2 datatables of a single dataset to 2 different worksheets of a single MSExcel file ?

0 Answers   Eastcom Systems,


Write a program to convert postfix expression to infix expression.

0 Answers   Mind Tree,


program for string reverse(eg:- i am boy -> boy am i)

8 Answers   Black Pepper, Infosys, Mind Tree,


program to check if a number is "perfect number".

1 Answers   Mind Tree, SoftSol,


how to get the table names via c sharp and column names also?

2 Answers   Sify,


I am developing a web application using google map api.I want to update the map inside the div control within update panel. I got other controls updated but map doesn't get updated.I do not not want to update map whenever unnecessary controls are fired at server side.How could it be achieved?

0 Answers  


Event Handling in C# Triggering a Button

1 Answers  


Give the code for Handling Mouse Events?

0 Answers  


Code for Reading and writing from a file?

0 Answers   IBM, Xoriant,


program to reverse the order of digits in a given number of any length.

1 Answers   Mind Tree,


how can i split sting in textbox in windows application using c# .net

2 Answers  


Categories
  • ASP.NET Code Interview Questions ASP.NET Code (46)
  • VB.NET Code Interview Questions VB.NET Code (9)
  • C Sharp Code Interview Questions C Sharp Code (51)
  • ADO.NET Code Interview Questions ADO.NET Code (8)