Documentos de Académico
Documentos de Profesional
Documentos de Cultura
h>
#include <conio.h>
void main()
float llant,total,uni;
if (llant<=0)
cout<<"DATOS ERRONEOS";
else
if(llant<5)
uni=300;
total=llant*uni;
cout<<"TOTAL A PAGAR......:"<<total<<endl;
else
if(llant<=10)
uni=250;
total=llant*uni;
cout<<"TOTAL A PAGAR......:"<<total<<endl;
else
if(llant>10)
uni=200;
total=llant*uni;
cout<<"TOTAL A PAGAR......:"<<total<<endl;
getch();
}
#include <iostream.h>
#include <conio.h>
void main()
float llant,total,uni;
if (llant<=0)
cout<<"DATOS ERRONEOS";
else
if(llant<5)
uni=300;
total=llant*uni;
cout<<"TOTAL A PAGAR......:"<<total<<endl;
else
if(llant<=10)
uni=250;
total=llant*uni;
cout<<"TOTAL A PAGAR......:"<<total<<endl;
else
if(llant>10)
uni=200;
total=llant*uni;
cout<<"TOTAL A PAGAR......:"<<total<<endl;
getch();
}
#include <iostream.h>
#include <conio.h>
void main()
int uni,cant;
float total;
uni=3;
if (cant<=0)
cout<<"DATOS ERRONEOS";
else
if(cant<50)
total=cant*uni*0.99;
cout<<"TOTAL A PAGAR......:"<<total<<endl;
else
if(cant<=100)
total=cant*uni*0.95;
cout<<"TOTAL A PAGAR......:"<<total<<endl;
else
if(cant>200)
total=cant*uni;
cout<<"TOTAL A PAGAR......:"<<total<<endl;
getch();