Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. public int fak(int x) {
  2. int total = x;
  3. for(int a=x;a>1;a--){
  4. total=total*(a-1);
  5. }
  6. return total;
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement