Have you ever wondered on how to make a website for mobile phones or how to make website compatible with mobile browsers or devices? If yes then continue reading as in this post I am going to provide you a list of service providers who are best in this business.
How To: Factorial Program In C# .Net
What is a factorial?
A factorial is the result of an integer multiplied by all the integers less than it. For example if you want to know the factorial of 3 then it can be calculated as 3*2*1 = 6. So factorial of 3 is 6. Similarly factorial of 5 is 5*4*3*2*1 = 120.
Note that factorial is always calculated for non-negative integers. So there is nothing like negative factorials.
In Algebra an exclamatory symbol (!) is used as a factorial notation.
So if we want to calculate factorial of 5 then we can write it as below:
5! = 120.
So how to find factorial of a number like 0? Answer is, factorial of 0 is always 1.
5! = 120.
So how to find factorial of a number like 0? Answer is, factorial of 0 is always 1.
Top 10 Articles From MSDN Magazine That Every .NET Developer Must Read
Recently I was going through few MSDN magazines and found some really useful articles for .NET developers. Although there are lot of valuable articles in MSDN magazines but I thought to create my own list of Top 10 that I think will be useful to .NET developers.
C# Multidimensional and Jagged Arrays Tutorial For Beginners With Examples
As described earlier, an array is used to store same type of data.
Classification of Arrays
Arrays in C# can be classified as below:
- Single-Dimensional Arrays
- Multidimensional Arrays
- Jagged Arrays
Arrays with single dimension has been discussed in the earlier chapters of this tutorial. In this chapter we will discuss Multidimensional and Jagged arrays.
C# Hashtable Tutorial For Beginners With Examples
A C# Hashtable represents a collection in which objects are stored and retrieved using a key.
Each key in a Hashtable has a hash code using which the objects in a Hashtable are organized.
Create a Hashtable in C#
A Hashtable can be created using the below code:
Hashtable shoppingCart = new Hashtable();
C# Stack Tutorial For Beginners With Examples
Stack is a type of collection in which the item stored last is retrieved first. This behaviour is also called as LIFO i.e. Last In First Out.
Inserting an item into a Stack is called as Pushing and removing an item is called as Popping.
Important features of C# Stack class
Below are some of the important features of a Stack class.
- Stack allows Null values.
- Stak allows duplicate values.
- It has both generic and non-generic versions.
C# Queue Tutorial For Beginners With Examples
Queue is a type of collection in which the item stored first is retrieved first. This behaviour is also called as FIFO i.e. First In First Out.
Inserting an item into a Queue is called as Enqueuing and removing an item is called as Dequeuing.
Important features of C# Queue class
Below are some of the important features of a Queue class.
- Null values can be stored in Queue.
- Duplicate values can be stored in Queue.
- It has both generic and non-generic versions.
Subscribe to:
Posts (Atom)