>>6113148>>6113148>>6113375Regular C doesn't support booleans.
It'd look something like this, notice how unsuited C is to this, and no rand.
int justMetYou = 0;
int thisIsCrazy = 0;
int number = 5555555555;
int hey(int justMetYou, int thisIsCrazy) {
int callMe;
if (justMetYou > 0 && thisIsCrazy > 0)
callMe = 1;
else
callMe = 0;
return callMe;
}
main() {
char yesno;
char yesno2; //might not need, my C is rusty
printf("Did you just meet him? (y/n) \n");
scanf("%d", &yesno);
if (yesno == y)
justMetYou = 1;
printf("Is this crazy? (y/n) \n");
scanf("%d", &yesno2);
if (yesno2 == y)
thisIsCrazy = 1;
int maybe = hey(justMetYou, thisIsCrazy);
if (maybe > 0)
printf("Here's my number: " + number + ", so call me maybe.");
else
printf("I missed you so so bad.");
}