Leer 10 numeros y sumarlos y obtener su cuboENTRADA: NUM SALIDA: CUBO
1.inicio
2.sum=0
CI=1
CF=10
Hacer para CI=1 a 10
Leer NUM
sum=sum+num
CI=CI+1
fin-para
CUBO=sum*sum+sum
4.fin
Designed with the special support by Maiahost and their Ultra-Fast Semi-Dedicated Servers
0 comentarios:
Publicar un comentario