ejemplo codificado

0 views
Skip to first unread message

Ediaz

unread,
May 23, 2008, 3:44:19 PM5/23/08
to Estructuras de Datos

#include<stdio.h>

void main()
{
float sxh,ht,s;
float sal_desc(float sb);
float sal_apag(float sxh,float ht);
printf("Introduzca el salario por hora \n");
scanf("%f",&sxh);
printf("Introduzca las horas trabajadas \n");
scanf("%f",&ht);
s=sal_apag(sxh,ht);
printf("\nsalario total=%0.2f",s);
}

float sal_apag(float sxh,float ht)
{
float sb,sap;
sb=sxh*ht;
sap=sal_desc(sb);
printf("\nsalario bruto =%0.2f",sb);
return(sap);
}
float sal_desc(float sb)
{

ade

unread,
May 23, 2008, 3:46:20 PM5/23/08
to Estructuras de Datos
Gracias Evelio por tu respuesta con ejemplos y todo
Reply all
Reply to author
Forward
0 new messages