ejercicio 5 prinf
-
Upload
rodrigo-puentes -
Category
Documents
-
view
215 -
download
0
Transcript of ejercicio 5 prinf
-
7/21/2019 ejercicio 5 prinf
1/1
#include #include
int main(){
float kilos,pres;
printf("\t\t\t DESCUENTO EN MANZANAS \n\n\n\n");
printf("Ingrese los kilos comprados:\t");scanf("%f",&kilos);
printf("Ingrese el precio por kilo:\t");scanf("%f",&pres);
if(kilos2 && kilos5 && kilos10){printf("\n\ndescuento del 20 porciento");pres=(pres*.80)*kilos;
}
printf("\n\nEl total a pagar es de:\t\t$%.2f",pres);
}