//Number int number; //Number you want to check if your number is devisible with int devis; if(number % devis == 0){ //do something is it is devisible by num }