Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package euler;
- public class Pr4 {
- public static void main(String [] args){
- long start = System.currentTimeMillis();
- for(int o = 900; o<999; o++){
- for(int n = 900; n<999; n++){
- int vin = o*n;
- String m = Integer.toString(vin);
- String s2 = new StringBuffer(m).reverse().toString();
- if( m.equals(s2)){
- System.out.println(s2);}
- }
- }
- double stop = (double)((System.currentTimeMillis() - start)/1000);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement