Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args) {
- String ans = "";
- long y = 0;
- long start = System.currentTimeMillis();
- for (int x = 100000; x <=1200000; x+=100000)
- {
- for (long i = y; i <= x; i++)
- System.out.println(i);
- }
- y+= 100000;
- long end = System.currentTimeMillis();
- String temp = Long.toString(end - start);
- ans= ans + " " + temp;
- System.out.println("it took = " + (ans));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement