This blog is for Automation Test Engineers

Sunday, 3 September 2017

Factorial number



int a,b,fact=1;

int a=6;
if(a<0}{
System.out.println("number should be non negative number");
}
else{
for(b=1;b<=a;b++)
fact=fact*c;
System.out.print(fact);
}


0

0 comments:

Post a Comment