#include
main()
{
int boys,girls;
float avg;
clrscr();
printf("\n Enter The BOYS:-");
scanf("%d",&boys);
printf("\n Enter The GIRLS:-");
scanf("%d",&girls);
avg=(boys+girls)/2;
printf("\n AVERAGE:-%f",avg);
getch();
}
OUTPUT
Enter The BOYS :34
Enter The GIRLS :43
AVERAGE=38
AVERAGE=38.500000
No comments:
Post a Comment