Prime Number

Common Programs Prime Number up to N number / First Ten Prime numbers / Factorial of a given number

Submitted by akhilesh on
Submitted by:- Akhilesh Sharma India / Punjab / Nawanshahr. (+91)(0)9463008090 1. //Program to find the factorial of given number; #include #include void main() { long num,fact=1; clrscr(); cout"\n Enter the number to find the factorial: "; cin>>num; for(;num>0;) { fact=fact*num; num--; } cout"Factorial is :"