myseleniumtraining
This blog is for Automation Test Engineers
Home
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);
}
Email This
BlogThis!
Share to X
Share to Facebook
By Chai on September 03, 2017
0
Newer Post
Older Post
Home
0 comments:
Post a Comment
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment