Answers for "pedir 10 numeros pares 10 impares java"

1

java par o impar

int intA = 0; 
if(intA%2 == 0) { //segun la resta de division entre 2, decirme si un numero es par o impar
			
			System.out.println("El numero: "+intA+" es par");
		}else {
			System.out.println("El numero: "+intA+" es impar");
		}
Posted by: Guest on October-22-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language