fork download
  1. #include<stdio.h>
  2. int main(){
  3. int sueldo,PVD1,Ganancia,Total;
  4.  
  5. printf ("Ingrese su Sueldo: ");
  6. scanf("%d", &sueldo);
  7.  
  8. printf ("Ingrese Predas vendidas Diarias: "),
  9. scanf("%d", &PVD1);
  10. if (PVD1>=3 && PVD1<=8){
  11. Total =PVD1*25;
  12. printf("Ganancia de Empleado Principiante: %d",Total);
  13. Ganancia=sueldo+Total;
  14. printf("\nGanancia Total:%d",Ganancia,Total);
  15.  
  16. }else {
  17. if (PVD1>=9 && PVD1<=12){
  18. Total=PVD1*45;
  19. printf ("Ganancia de Empleado Intermedio: %d",Total);
  20. Ganancia=sueldo+Total;
  21. printf("\nGanancia Total:%d",Ganancia,Total);
  22.  
  23. }
  24. else{
  25. if(PVD1>=13 && PVD1<=18){
  26. Total=PVD1*70;
  27. printf("Ganacia de Empleado Avanzado: %d",Total);
  28. Ganancia=sueldo+Total;
  29. printf("\nGanancia Total:%d",Ganancia,Total);
  30. }
  31. else{
  32. printf("Sin datos");
  33. }
  34. }
  35. }
  36.  
  37. }
  38.  
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
Ingrese su Sueldo: Ingrese Predas vendidas Diarias: Sin datos