Factorial.java
class factorial
{
public static void main(String arg[])
{
int i,j,f,a,n;
n=arg.length;
for(i=0;i
{
f=1;
a=Integer.parseInt(arg[i]);
for(j=1;j<=a;j++)
{
f=f*j;
}
System.out.println("factorial of " +a +"\tis\t" +f);
}
}
}
HI BUDDIES I'M PRASAD.R FROM DHARWAD. I'M STUDYING COMPUTERS. STAY TUNED WITH ME ON MY BLOG FOR LATEST UPDATES ON VB PROGRAMMING... NOTE: To execute the codes given below, requires throw knowledge of VB6.
For Latest Info On Softwares & Many Stuffs
sms
http://www.smsgupshup.com/groups/digitsJOIN
DIGITS
and send it to 09219592195
No comments:
Post a Comment