Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ProjectZero {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- int nr = 1234;
- String s = "";
- while (nr > 0) {
- int a = nr % 10;
- char c = (char)(48 + a);
- nr = nr / 10;
- s = c + s;
- }
- System.out.print(s);
- }
- }
Add Comment
Please, Sign In to add comment