Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
multiplo de 4 y 6
//'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_111 //holi import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { Scanner datos = new Scanner (System.in); int s1, mult4, mult6; System.out.println("ingrese un numero"); s1= datos.nextInt(); mult4= s1%4; mult6= s1%6; if(mult4==0){ System.out.println("el numero ingresado es multiplo de 4: "+s1); } else if(mult6==0){ System.out.println("el numero ingresado es multiplo de 6: "+s1); } else{ System.out.println("el numero ingresado es no es multiplo de 4 o 6: "+s1); } } }
run
|
edit
|
history
|
help
0
JavaQ5b
post decrement
inheritance
Complex number multiplication (leetcode)
KatyaPetrova
pow x^n
Path finding given 2D array
practicecode
Hanna Rextster.com
calc exp nha