Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ForAnon{
- public static void main(String[] args) {
- int n = 6;
- int f = 1;
- for (int i=1;i<=n;i++ ) {
- f*=i;
- }
- System.out.println(f);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement