Ejercicio: Obtenga los 100 primeros números naturales.
package com.java.basic;
/**
*
* @author Ariel
*/
public class CienNum {
public static void main(String[] arg){
for (int i = 1; i <= 100; i++) {
System.out.println("- " + i);
}
}
}
package com.java.basic;
/**
*
* @author Ariel
*/
public class CienNum {
public static void main(String[] arg){
for (int i = 1; i <= 100; i++) {
System.out.println("- " + i);
}
}
}
No hay comentarios :
Publicar un comentario