daily pastebin goal
4%
SHARE
TWEET

Untitled

a guest Sep 24th, 2014 439 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top