/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class multide3
{
static boolean multiplo3(int n) {
if (n % 3 == 0)
return true;
else return false;
} // end multiplo3
{
Scanner input
= new Scanner
(System.
in); System.
out.
println("introduce un numero"); int numero = input.nextInt();
// comprobar si el numero es multiplo de 3
if(multiplo3(numero))
System.
out.
println(numero
+ "es multiplo de 3"); else System.
out.
println(numero
+ "no es multiplo de 3");
input.close();
} // end main
} // end class
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgbXVsdGlkZTMKewoJc3RhdGljIGJvb2xlYW4gbXVsdGlwbG8zKGludCBuKSB7CiAKCWlmIChuICUgMyA9PSAwKQoJCXJldHVybiB0cnVlOyAKCQllbHNlIHJldHVybiBmYWxzZTsKCX0gLy8gZW5kIG11bHRpcGxvMwogCiAKcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJU2Nhbm5lciBpbnB1dCA9IG5ldyBTY2FubmVyKFN5c3RlbS5pbik7CgkJU3lzdGVtLm91dC5wcmludGxuKCJpbnRyb2R1Y2UgdW4gbnVtZXJvIik7CgkJaW50IG51bWVybyA9IGlucHV0Lm5leHRJbnQoKTsKCQkvLyBjb21wcm9iYXIgc2kgZWwgbnVtZXJvIGVzIG11bHRpcGxvIGRlIDMKIAoJCWlmKG11bHRpcGxvMyhudW1lcm8pKSAKCQkJU3lzdGVtLm91dC5wcmludGxuKG51bWVybyArICJlcyBtdWx0aXBsbyBkZSAzIik7CiAgICAgCQllbHNlIFN5c3RlbS5vdXQucHJpbnRsbihudW1lcm8gKyAibm8gZXMgbXVsdGlwbG8gZGUgMyIpOwogCiAgICAgCQlpbnB1dC5jbG9zZSgpOwogCgl9IC8vIGVuZCBtYWluCn0gLy8gZW5kIGNsYXNz