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
/* crea un archivo secuencial */ | |
#include <stdio.h> | |
int main() | |
{ | |
int cuenta; /*numero de cuenta*/ | |
char nombre [ 30 ]; /*numero de cuenta*/ | |
double saldo; /* saldo de la cuenta*/ | |
FILE * ptrCf; /* apuntador al archivo clientes.dat */ |
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
#include<stdio.h> | |
void examen_sorpresa(void); | |
int factorial(int n); | |
char name[20]; | |
int dia, mes, year, edad, sum, sum_fact, i, fact; | |
char pregunta; | |
int main() { |
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
#include<stdio.h> | |
main(){ | |
int estadio [19][100]; /* el primer 19 son los 19 partidos, los otrs 100 es el número de socios */ | |
int i, j; | |
int partidos, entradas, entradasocio=19; | |
char socios[100]; | |
int eleccion; | |
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
/* Figura 3.6: fig03.06.c | |
Programa para obtener el primedio de calificaciones de un grupo mediante una repeticion controlada por contador */ | |
#include <stdio.h> | |
/* la funcion main inicia la ejecucion del programa */ | |
int main () | |
{ | |
int contador; /* numero de la calificacion siguiente */ | |
int calificacion; /* valor de la calificacion */ | |
int total; /* suma de las calificaciones introducidas por el usuario */ |
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
/* la funcion main inicia la ejecucion del programa */ | |
main() | |
{ | |
int num1; /* primer numero que lee el usuario */ | |
int num2; /* segundo numero que lee el usuario */ | |
printf( "introduzca dos enteros, y le dire\n" ); | |
printf( "las relaciones que satisfacen: " ); |