" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
Plataforma: NetBeans
package serie.recursividad;
public class SerieRecursividad {
public static void main(String[] args){
double suma=0;
for (int i = 1; i < 1000; i++) {
if(i%2!=0){
suma = suma + Math.pow(i, 1.0/2);
}
}
System.out.println("Suma de serie: "+suma);
}
}