This file contains hidden or 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 41 | |
#include<stdio.h> | |
#include<stdlib.h> | |
#include<time.h> | |
int main(int argc , char* argv[]) | |
{ | |
int dado, valor,m; | |
long int c=0; | |
srand(time(NULL)); | |
printf("este es un juego de dados\n mostrara la cantidad de tiros que se realizo y el valor par que hizo que se detengan lo lanzamientos"); |
This file contains hidden or 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
//ahorcado | |
#include<stdio.h> | |
#include<iostream.h>//se utilizaran de esta las funciones cout y cin | |
#include<conio.h>// text color y gotoxy(); y getch(); | |
#include<stdlib.h> //srand() y rand() | |
#include<ctype.h>// toupper y isalpha | |
#include<string.h> //strcpy strcmp strien | |
char palabras[4][10], palabra[10], letra, respuesta[10]; |
This file contains hidden or 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 1, arreglos, mostrar cuantas veces se repite en el arreglo un numero ingresado | |
#include<stdio.h> | |
void cargarvector(int, int[]); | |
int main(int argc , char*, int argv[]) | |
{ | |
int h,x,i, cont; | |
i=1; | |
cont =0; |
This file contains hidden or 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> | |
#include "c:\programs\programa2.h" | |
void presenta(); | |
int main(int argc, char *argv[]) | |
{ | |
presenta(); | |
printf("\n"); | |
return 0; |
This file contains hidden or 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> | |
#include "c:\programs\programa2.h" | |
void presenta(); | |
int main(int argc, char *argv[]) | |
{ | |
presenta(); | |
printf("\n"); | |
return 0; |
This file contains hidden or 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 intercambio1( int, int); | |
int main (int argc, char *argv[]) | |
{ | |
int var1 = 15, var2 = 27; // Inicio | |
printf("\nValores antes de llamar la funcion:\t\t %-4d %-4d", var1, var2); | |
intercambio1(var1, var2); |
This file contains hidden or 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 5, | |
#include<stdio.h> | |
void cargarvector(int, int[]); | |
int main( int argc, char* argv[]) | |
{ | |
int c, n, i , r, z, v[n]; | |
printf("ingrese el orden del vector: "); | |
scanf("%d", &n); |