java - How do I print 1 to 10 in netbeans and print odd and even numbers? -
imprimir del 1 al 10 en neat beans tambien necesito los numeros pares y impares gracias!!!!.
spanish english translation
question title: how print 1 10 in net beans , print odd , numbers answers
question text: print 1 10 in neat beans need , odd numbers !!!!.
en espanol:
// recorrer todos los números del 1 al 10 for(int i=0; <=10; i++){ if( i%2 == 0 ) // modulo prueba por pares o impares system.out.println ( + " es pares"); else system.out.println ( + " es impares"); }
¿es esto lo que querías?
in english:
// loop through numbers 1 10 for(int i=0; <=10; i++){ if( i%2 == 0 ) // modulo test or odd system.out.println ( + " even"); else system.out.println ( + " odd"); }
is you're asking for?
Comments
Post a Comment