fork download
  1. #include <stdio.h>
  2.  
  3. float imp;
  4.  
  5. int main(void) {
  6. printf("Introduzca el importe en bruto\n");
  7. scanf("%f", &imp);
  8.  
  9. if(imp>15000){
  10. printf("El importe neto es: %f", imp-imp*16/100);
  11. }
  12. else{
  13. printf("El importe neto es: %f", imp-imp/10);
  14. }
  15. }
  16.  
Success #stdin #stdout 0.01s 5468KB
stdin
100000
stdout
Introduzca el importe en bruto
El importe neto es: 84000.000000