Upload
javier-molina
View
214
Download
0
Embed Size (px)
Citation preview
8/18/2019 precios por edad C
1/1
#include
#include
#define Desc 0.50
main()
{
int Edad;
float Precio,Monto;
printf ("Ingrese edad del cliente:\n");
scanf ("%i", &Edad);
printf ("\n Ingrese precio del boleto:\n");
scanf ("%f", &Precio);
if (Edad>0)
{
if (Precio>0)
{
if (Edad>60)
{
Monto= Precio-Precio*Desc;
}
else
{
if (Edad