fork download
  1. #include <stdio.h>
  2. main()
  3. {
  4. int PV,SB,T;
  5. printf("Captura el número de prendas vendidas:");
  6. scanf("%d",&PV);
  7. printf("Captura el sueldo base:");
  8. scanf("%d",&SB);
  9. if (PV>=3 && PV<=8)
  10. {
  11. PV=PV*25;
  12. T=PV+SB;
  13. printf("Sueldo total: %d",T);
  14. }
  15. else
  16. {
  17. if (PV>=9 && PV<=12)
  18. {
  19. PV=PV*45;
  20. T=PV+SB;
  21. printf("Sueldo total: %d",T);
  22. }
  23. else
  24. {
  25. if (PV>=13 && PV<=18)
  26. {
  27. PV=PV*70;
  28. T=PV+SB;
  29. printf("Sueldo total: %d",T);
  30. }
  31. }
  32. }
  33. return 0;
  34. }
  35.  
Success #stdin #stdout 0s 5276KB
stdin
Standard input is empty
stdout
Captura el número de prendas vendidas:Captura el sueldo base: