for(algo)


BY
JOSE MIGUEL BRICEÑO
WWW.M3TALIJOX.ES.TL

/ * yo soy el mejor*/
#include<iostream.h>

void main ()
{
    int CI,NU;
    float SB,FI,SF;

    for(int i=0; i<25;i++)
    {
        cout<<endl<<"ingrese el numero de cedula:"<<endl;
        cin>>CI;
        cout<<endl<<"ingrese salario semanal:"<<endl;
        cin>>SB;
        cout<<endl<<"ingres numero de unidades producidas por semana:"<<endl;
        cin>>NU;
        cout<<endl<<"ingrese el porcentaje del incentivo:"<<endl;
        cin>>FI;
        
        if(NU < 700)
        {
            SB=SB-((700-NU)*200);
        }
        else
        {
            SB=SB+(FI*SB);
        }
        cout<<endl<<"cedula:"<<CI;
        cout<<endl<<"salario base:"<<SB;
        
    }
cin.get();
cin.get();

}
Este sitio web fue creado de forma gratuita con PaginaWebGratis.es. ¿Quieres también tu sitio web propio?
Registrarse gratis