Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
0Activity
0 of .
Results for:
No results containing your search query
P. 1
Guia de For

Guia de For

Ratings: (0)|Views: 11|Likes:
Published by Alexandriita Lopez
Programacion
Programacion

More info:

Published by: Alexandriita Lopez on Dec 07, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
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: ");

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->