Jump to content
Tuts 4 You

[KeygenMe] Java KeygenMe


NewEraCracker

Recommended Posts

hi mate!

import java.io.PrintStream;
import java.util.Scanner;public class keygenme
{ public keygenme()
{
} public static void main(String args[])
{
Scanner scanner = new Scanner(System.in);
System.out.println();
System.out.println();
System.out.print("Insert your 7 Digit Numeric Key: ");
int i = scanner.nextInt();
System.out.println();
System.out.println();
if(i % 2 == 0 || i % 3 == 0 || i % 5 == 0 || i <= 0x12d687 || i >= 0x96b43f)
System.out.print("Try again");
else
System.out.print("Easy, wasn't it");
System.out.println();
System.out.println();
}
}

Good Luck ,

GioTiN

Link to comment
NewEraCracker

Original Source:

import java.util.Scanner;

public class keygenme{

public static void main (String [] Args){

Scanner keyboard = new Scanner (System.in);

System.out.println();

System.out.println();

System.out.print("Insert your 7 Digit Numeric Key: ");

int key = keyboard.nextInt ();

System.out.println();

System.out.println();

// do

// {

// key = (int) (Math.random() * 10000000);

// }

// while ( key%2==0 || key%3==0 || key%5==0 || key<=1234567 || key>=9876543 );

// System.out.println(key);

if( key%2==0 || key%3==0 || key%5==0 || key<=1234567 || key>=9876543 )

{

System.out.print("Try again");

}

else

{

System.out.print("Easy, wasn't it");

}

System.out.println();

System.out.println();

}

}

Edited by NewEraCracker
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...