i hope some one can help me
#include <stdio.h>
int main(void) {
int n1;
char g;
printf("\nPlease, Enter The Number Of Your Children: ");
scanf("%d",&n1);
if(n1>=3)
printf("\nYou have alot of kids!\n");
else if(n1==2)
printf("\nYou have 2 kids\n");
else if(n1==1){
printf("\n Boy Or Girl (g/b): ");
Here i tried to use %c but its not working it print the last line without asking me boy or girl!
scanf("%s",&g);
}
if( g == 'b')
printf("\n You Have a little prince\n");
else
printf("\n You have a little princess\n");
return 0;
}