please give an example of a modulus sign in java
Answers
Answered by
1
class ModulusOperator{
public static void main(String[] args){
int num1,num2,result;
num1=13;
num2=8;
System.out.println("num1=13; num2=8");
result=num1%num2;
System.out.println("The result after modulus operation is : "+result);
}
}
Similar questions