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
/* | |
* FuncionNumReal.c | |
* Ejercicios del Podcast Codigo Fuente - Programa 34 | |
* Escribir una función que devuelva el resultado de | |
* elevar un número real a una determinada potencia | |
* Creado el 03 de jun. de 2016 | |
* Author: jmramirez | |
*/ | |
#include <stdio.h> |
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
/* | |
* FuncionIncrementar.c | |
* Ejercicios del Podcast Codigo Fuente - Programa 34 | |
* Escribir una función que incremente una variable que se le pase como parámetro | |
* Creado el 03 de jun. de 2016 | |
* Author: jmramirez | |
*/ | |
#include <stdio.h> | |
#include <math.h> |
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
/* | |
* FuncionAreaCirculo.c | |
* Ejercicios del Podcast Codigo Fuente - Programa 33 | |
* Escribir una función que calcule el área de un círculo dado su radio. | |
* Creado el 24 de may. de 2016 | |
* Author: jmramirez | |
*/ | |
#include <stdio.h> | |
#include <math.h> |
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
/* | |
* FuncionDobleNumero.c | |
* Ejercicios del Podcast Codigo Fuente - Programa 33 | |
* Realizar una función que imprima por pantalla el doble | |
* del número que recibe como parámetro. | |
* Creado el 24 de may. de 2016 | |
* Author: jmramirez | |
*/ | |
#include <stdio.h> |
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
Programa: SumaProducto | |
Entorno: NOTA1,NOTA2,SUMA,PRODUCTO son números enteros | |
Algoritmo: | |
escribir “Introduzca las notas” | |
leer NOTA1,NOTA2 | |
calcular SUMA = NOTA1 + NOTA2 | |
calcular PRODUCTO = NOTA1 * NOTA2 | |
escribir “La suma de las dos notas es:” SUMA | |
escribir “El producto de las dos notas es :”PRODUCTO | |
Finprograma |
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
Programa; área | |
Entorno: BASE, ALTURA, AREA son número enteros | |
Algoritmo: | |
escribir “Introduzca la base y la altura” | |
leer BASE, ALTURA | |
calcular AREA = BASE * ALTURA | |
escribir “El área del rectángulo es “AREA | |
Finprograma |
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
/* | |
* NumeroN2.c | |
* Ejercicios del Podcast Codigo Fuente - Programa 29 | |
* Escribir un programa que solicite de usuario un número N y luego muestre | |
* por pantalla la siguiente ejecución: | |
* 1 | |
* 1 2 | |
* 1 2 3 | |
* 1 2 3 4 | |
* ......... |
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
/* | |
* MinMax.c | |
* Ejercicios del Podcast Codigo Fuente - Programa 29 | |
* Escribir un programa que calcule el mínimo, el máximo y la media de una | |
* lista de números enteros positivos introducidos por el usuario. | |
* La lista finalizará cuando se introduzca un número negativo. | |
* Creado el 14 de abr. de 2016 | |
* Author: jmramirez | |
*/ |
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
/* | |
* Dado.c | |
* Ejercicios del Podcast Codigo Fuente - Programa 028 | |
* Escribir un programa, en lenguaje C, que: | |
* 1º) Pida por teclado el resultado (dato entero) obtenido al lanzar | |
* un dado de seis caras. | |
* 2º) Muestre por pantalla el número en letras (dato cadena) de la cara | |
* opuesta al resultado obtenido. | |
* Nota 1: En las caras opuestas de un dado de seis caras están | |
* los números: 1-6, 2-5 y 3-4. |
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> |
NewerOlder