tipp
PROGRAMA 1
//PROGRAMA QUE DETERMINA EL RESULTADO DE DOS ENTEROS
#include
#include
void main()
{clrscr();
int a=0,b=0,p=0,c=0,r=0;
printf(" PROGRAMA PARA DETERMINAR LOSRESULTADOS DE 2 NUMEROS\n\n");
printf("Ingrese el primer n£mero: ");
scanf("%d",&a);
printf("Ingrese el segundo n£mero:");
scanf("%d",&b);
p=a*b;
c=a/b;
r=a%b;
printf("El producto es: %d",p);printf("\n\nEl cociente es: %d",c);
printf("\n\nEl residuo es: %d",r);
getch(); }
PROGRAMA 2
// programa para convertir de grados Celsius a farenles
#include
#include
void main ()
{clrscr();
float c=0, t=0;
printf(" CONVERCION DE LA TEMPERATURA DE LOS GRADOS CELSIUS A FARENLES\n\n");
printf("\n\ningrese la temperatura en grados celsius: ");
scanf("%f",&c);t=(9.0/5.0)*(c+32);
printf("\nla convercion es:%.2f grados farenles",t);
getch();
}
PROGRAMA 3
//PROGRAMA DE SISTEMA DE ECUACIONES LINEALES
#include
#include
void main()
{
clrscr();int a=0,b=0,c=0,d=0,e,f;
e=0;
f=0;
float x=0,y=0;
printf (" SISTEMAS DE ECUACIONES\n");
printf(" INGRESE VALORES EN LA 1 ECUACION\n");printf(" VALOR DE a: ");
scanf("%d",&a);
printf(" VALOR DE b: ");
scanf("%d",&b);
printf(" VALOR DE c: ");
scanf("%d",&c);
printf(" \n%dx+%dy=%d\n",a,b,c);
printf("\n INGRESE VALORES EN LA 2 ECUACION\n");
printf(" VALOR DE d: ");
scanf("%d",&d);
printf(" VALOR DE e: ");scanf("%d",&e);
printf(" VALOR DE f: ");
scanf("%d",&f);
printf(" \n %dx+%dy=%d\n",d,e,f);
x=(c*e-b*f)/(a*e-b*d);
y=(a*f-c*d)/(a*e-b*d);
printf("\n ELRESULTADO DE LA 1 ECUACION ES: %.0f",x);
printf("\n EL RESULTADO DE LA 2 ECUACION ES: %.0f",y);
getch();
}
PROGRAMA 4
// programa para crear un rectangulo
#include...
Regístrate para leer el documento completo.