Guest User

Untitled

a guest
Dec 11th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. public class ProjectZero {
  2.  
  3.     /**
  4.      * @param args the command line arguments
  5.      */
  6.     public static void main(String[] args) {
  7.         int nr = 1234;
  8.         String s = "";
  9.         while (nr > 0) {
  10.             int a = nr % 10;
  11.             char c = (char)(48 + a);
  12.             nr = nr / 10;
  13.             s = c + s;
  14.         }
  15.         System.out.print(s);
  16.     }
  17. }
Add Comment
Please, Sign In to add comment