Entradas

Mostrando las entradas de noviembre, 2021

PROGRAMAS EXTRAS U5

Imagen
 22 DE NOVIEMBRE DE 2021                                                           PROGRAMAS EXTRAS PROGRAMA 1 ESTE PROGRAMA CONSISTE EN DAR CALIFICACIONES Y SACAR TU PROMEDIO   #include <stdio.h> #include <stdlib.h> int main() {   float cal[5];   int i;   for(i=0;i<5;i++)   {   printf("Dame la calificacion %d de 0-10: \n", i+1);   scanf("%f",&cal[i]);     }   for(i=0;i<5;i++)    { printf("\nLa calificacion %d es: %.2f\n",i+1,cal[i]);   }   return 0; } PROGRAMA 2  ESTE PROGRAMA CONSISTE EN SACAR EL PROMEDIO GENERAL DE TUS CALIFICACIONES  #include <stdio.h> #include <stdlib.h> int main() {     float cal[5], suma=0, prome=0;     int i;   for(i=0;i<5;i++) ...

PROGRAMAS DIARIOS U5

Imagen
 21 DE NOVIEMBRE DE 2021 HOJA DE ACTIVIDADES                                                                  PROGRAMAS DIARIOS     PROGRAMA  1  DE USO UNIDIMENSIONAL    #include <stdio.h> #include <stdlib.h>   int main() {     int edad[32];     char nom[10];     char ape[10];     float est[32];     nom[0]='M';     nom[1]='i';     nom[2]='g';     nom[3]='u';     nom[4]='e';     nom[5]='l';     nom[6]=' ';     nom[7]='A';     nom[8]='\0';     printf("%s\n",nom);     puts("Dame apellido paterno ");     scanf("%s",ape);     printf("Apellido %s\n",ape);   ...

PROGRAMAS EXTRA UNIDAD 4

Imagen
 5 DE NOVIEMBRE DE 2021                                                           PROGRAMAS EXTRAS   PROGRAMA NO°1 este programa consiste en utilizar una función  tipo void, usando un if para asi permitir un rango de valores.    #include <stdio.h> #include <stdlib.h> void letrero(int e){       if (e>=18){         puts("Entra");     }else {         puts("Sale");     } } int main() {     /* Pedir al usuario su edad, si la edad es mayor a 18 entra , si no sale*/     int edad=0;     printf("Dame tu edad: \n");     scanf("%i", &edad);     letrero(edad);     /*if (edad>=18){         puts("Entra");     }else...

PROGRAMAS DIARIOS UNIDAD 4

Imagen
 5 DE NOVIEMBRE DE 2021                                                                  PROGRAMAS DIARIOS   PROGRAMA NO° 1 el siguiente programa consiste en exponer el uso de una función para diferenciar entre el main y la misma. #include <stdio.h>   #include <stdlib.h>   void saluda();   int main()   {    saluda();   printf("Hello world en el main\n");    return 0; } void saluda() { printf("Hello world en la funcion\n"); } PROGRAMA NO° 2 el siguiente programa consiste en emplear funciones compartiendo un valor diferenciador a la función. #include <stdio.h> #include <stdlib.h> int Ari(int rosa){     printf("Ari: %d\n", rosa);     rosa=rosa*5;     Ram(rosa); } int Ram(int azul){     azul=azul+...