0
I need to know if the second number is multiple of the first number, if yes return true
otherwise false
, I’m having trouble declaring the library Boolean
.
package br.fatec.com;
import java.util.Scanner;
public class Mult {
public static void main(String args[]){
Scanner numero1 = new Scanner(System.in);
System.out.println("digite o primeiro numero");
Scanner numero2 = new Scanner(System.in);
System.out.println("digite o segundo numero");
int num1 = 0;
int num2 = 0;
int mult;
mult = (num2 % num1);
boolean verifiva int mult; {
if (mult >=0){
return True;
}else
return False;
}
}
}
Did any of the answers solve your question? Do you think you can accept one of them? Check out the [tour] how to do this, if you haven’t already. You would help the community by identifying what was the best solution for you. You can accept only one of them. But you can vote on any question or answer you find useful on the entire site (when you have enough score).
– Maniero