Advertisement
Guest User

Untitled

a guest
Sep 24th, 2014
554
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.22 KB | None | 0 0
  1. public class Stepen {
  2.     public static void main(String[] args){
  3.         int x = 5;
  4.         int n = 1;
  5.         int y = 1;{
  6.             for(int i = 1;i < x;i++){
  7.                 y = y + 1;
  8.                 n = n * y;
  9.        
  10.                 System.out.println(n);
  11.             }
  12.         }
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement