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