Created
April 1, 2016 06:51
-
-
Save jmramirezpro/d0dc40f9ba539297356bea1801fb30e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* NumerosCubo.c | |
* Ejercicios del Podcast Codigo Fuente - Programa 028 | |
* Escribir un programa, en lenguaje C, que muestre por pantalla los cinco | |
* primeros números naturales pares elevados al cubo. | |
* Creado el 27 de mar. de 2016 | |
* Author: jmramirez | |
*/ | |
#include <math.h> | |
#include <stdio.h> | |
int main() | |
{ | |
int numero; | |
for (numero = 2 ; numero <= 10 ; numero += 2){ | |
printf( "%.f ", pow( numero, 3 ) ); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment