Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int fak(int x) {
- int total = x;
- for(int a=x;a>1;a--){
- total=total*(a-1);
- }
- return total;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement