Skip to content

Instantly share code, notes, and snippets.

@jmramirezpro
Created April 1, 2016 06:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmramirezpro/d0dc40f9ba539297356bea1801fb30e6 to your computer and use it in GitHub Desktop.
Save jmramirezpro/d0dc40f9ba539297356bea1801fb30e6 to your computer and use it in GitHub Desktop.
/*
* 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