public int fact(int x) { int fact=1; int i=1; while (i<=x) { fact = fact * i; i++; } return fact; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)