New Member FAQ | Forums | Earn Revenue


Resources Entrance Ask Experts Exam Papers Jobs English Projects Universities Colleges Courses Schools Training My India



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

website counter



Computing a factorial in a for loop


Posted Date:     Total Responses: 0    Posted By: Sunil Reddy   Member Level: Platinum   Points/Cash: 3   


using System;
class Factorial
{
public static void Main(string ar[])
{
long nFactorial =1;
long nComputeTo =5;
long nCurDig = 1;
for(nCurDig = 1; nCurDig < = nComputeTo; nCurDig ++)
nFactorial * = nCurDig;
Console.WriteLine(" {0}! is {1} ", nComputeTo , nFactorial);
Console.ReadLine( " ");
}
}
}



Project Feedbacks


No feedbacks found. Be the first to respond and make money from revenue sharing program.

Post Feedback
You must Sign In to post a feedback.
Next Project: Using a SWITCH statement display the DAYS in a MONTH
Previous Project: Computing average in a DO loop

Return to Project Index

Post New Project


Related Projects






Contact Us   Advertise   Editors    Privacy Policy    Terms Of Use   

AdSense Revenue Sharing sites

ISC Technologies.
2006 - 2009 All Rights Reserved.