U A C M

¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.
U A C M

Universidad Autónoma de la Ciudad de México


    PROGRAMA QUE CALCULA EL SUELDO NETO DE UN VENDEDOR

    Krlos
    Krlos
    Admin


    Mensajes : 72
    Fecha de inscripción : 11/05/2011

    PROGRAMA QUE CALCULA EL SUELDO NETO DE UN VENDEDOR  Empty PROGRAMA QUE CALCULA EL SUELDO NETO DE UN VENDEDOR

    Mensaje  Krlos Vie Mayo 20, 2011 4:13 pm

    /* PROGRAMA QUE PROGRAMA QUE CALCULA EL SUELDO NETO DE UN VENDEDOR
    AUTOR: CARLOS E. LOPEZ */

    #include <stdio.h>
    #include <stdlib.h>
    main()
    {
    float sb,v1,v2,v3,com,tot_ven,tot_pag;
    sb=250;
    printf("\nPROGRAMA QUE CALCULA EL SUELDO NETO DE UN VENDEDOR\n\n");
    printf ("Ingrese la venta 1: ");
    scanf ("%f",& v1);
    printf ("Ingrese la venta 2: ");
    scanf ("%f",& v2);
    printf ("Ingrese la venta 3: ");
    scanf ("%f",& v3);
    tot_ven=v1+v2+v3;
    com=tot_ven*.12;
    tot_pag=sb+com;
    printf ("\n\nSUELDO BASE: %f PESOS",sb);
    printf ("\nCOMISION POR VTAS: %f PESOS",com);
    printf ("\n\nPAGO NETO: %f PESOS\n\n\n",tot_pag);
    system("PAUSE");
    return 0;
    }

      Fecha y hora actual: Dom Mayo 19, 2024 6:52 am