Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
0 of .
Results for:
P. 1
Guia de For

# Guia de For

Ratings: (0)|Views: 11|Likes:
Programacion
Programacion

### Availability:

See more
See less

12/07/2012

pdf

text

original

Ejercicio2.
#include <stdio.h>#include <stdlib.h>#include <math.h>#include <windows.h>main(){char selec;float montoini,inter1,inter2,montofini;printf("\n");printf("\t\tBIENVENIDO A LA CAJA DE PRESTAMOS");printf("\n");printf("\n");printf("Digite el monto que el cliente desea retirar\n");scanf("%f",&montoini);printf("\n");printf("\t\tSELECCIONE EL LIMITE DE PAGO");printf("\n");printf("\n\t (a).12 meses con un interes del 7.3%%\n");printf("\n\t (b).24 meses con un interes del 14.2%%\n");printf("\n");selec=getch();if(selec=='a'){

inter1 = montoini*0.073;inter2 = inter1+12;montofini= montoini+inter2;printf("El cliente pagara al final: \$%5.2f\n",montofini);printf("La ganancia del banco es: \$%5.2f\n",inter2);}if(selec=='b'){inter1 = montoini*0.142;inter2 = inter1+12;montofini= montoini+inter2;printf("El cliente pagara al final: \$%5.2f\n",montofini);printf("La ganancia del banco es: \$%5.2f\n",inter2);}else{printf("\n\nERROR opcion no valida\n");printf("\n");}printf("\n");system("PAUSE");return 0;}

Ejercicio3.
#include <stdio.h>#include <stdlib.h>#define TAM 500intmain(){int i,j;int xventas,nprecios,articulos=0;float valor,totalprecios=0,mayor,menor,elemento;float matriz[0][0],totales[0];printf("\t\tCAJA REGISTRADORA\n");printf("\n");printf("Ingresar numero ventas: ");