Skip to content
← Back to Community
boy or girl
Profile icon
drAly

#include <stdio.h>
#include <stdlib.h>

int main(void)
{
int kids;
char sex;

printf("How many kids do you have?\n"); scanf("%d",&kids); if(kids==1) { printf("is it boy or girl ?\n"); printf("use b for boy or g for girl\n"); scanf("%s",&sex); if(sex=='g'||'G') printf("you have a little princess. \n"); else printf("you have a little prince.\n"); } else if(kids==2) printf("you have 2 kids .\n"); else printf("you have too much kids \n"); return 0;

}

Voters
Profile icon
YoussefMedhat3
Profile icon
ZeyadAladham
Profile icon
yossefghozal
Profile icon
osamaomar3
Profile icon
HodaMahmood
Profile icon
MostafaNour
Profile icon
gemy11
Profile icon
mido002
Profile icon
drAly
Comments
hotnewtop
Profile icon
JaneJLocane

My boyfriend asked me similar questions. The correspondence was like an interview.

Profile icon
JeffThorsen777

Interesting collection of questions. Usually they are asked on dating sites. I didn’t believe before that you could find your half there. Somehow, by chance, I went to the site bdsmlr.com and began to correspond with a girl. It turns out that we have the same interests. A month after the meeting, we began to live together. And we will have a baby soon.