C# Sample Programs
Simple C# programming codes
Sunday, November 14, 2010
Display the Factor of a Number
class Program
{
static void Main(string[] args)
{
int a=5,b=1;
for (; a >= 1; a--)
{
b = b * a;
}
Console.WriteLine(b);
}
}
Newer Post
Older Post
Home