
Originally Posted by
Click_here
Try putting a newline at the end "dude", or adding...
after your last printf to flush the output buffer
Code:
#include <stdio.h>#include <stdlib.h>
int main()
{
int age;
char gen;
printf("Enter your age : \n");
scanf("%d",&age);
printf("Whats your gender m/f : \n");
scanf(" %c ",&gen);
if (age >= 18){
printf("enter this website");
if (gen == 'm'){
printf("dude");
}
}
getchar();
fflush(stdout);
return 0;
}
you meant this?
this also doesn't print anything after age and gender is entered