mga kua's pa help nmn ko ani nag lisud jud ko ani.. kani ang ako problem
group 1 males under 25 years old
group 2 females "' " " "
group 3 males between 25-45" "
group 4 females " "
group 5 all people are 45years old
design a program to input a necessry information for a person and output his/her group
#include<stdio.h>void main ()
{
int AGE;
char G;
printf("\n\nGender Male [M/m] - Female [F/f]: ");
scanf("%s",&G);
printf("\n\nAge: ");
scanf("%d",&AGE);
if ((G=='M' || G=='m') || (G=='F' || G=='f') )
if(AGE<25)
printf("\n\n\nGroup 1\n\n\n");
else if( G=='F' || G=='f')
printf("\n\n\nGroup 2\n\n\n");
else
if ((G=='M' || G=='m') || (G=='F' || G=='f') )
if(25>45)
printf("\n\n\nGroup 3\n\n\n");
else
if( G=='F' || G=='f')
printf("\n\n\nGroup 4\n\n\n");
}
mao na ako gi code murag sayup man kay inig input nako sa f dili siya mo group 2 hahaiz tabang plss