Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

how to check is some number is divisible by 3 in c++

//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
}
 
PREVIOUS NEXT
Tagged: #check #number #divisible
ADD COMMENT
Topic
Name
8+2 =