Well, not sure why you were having problems. I couldn't replicate that result in Code::Blocks. It worked as expected when I executed your code with my stuff added in.
Code :
Code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include <dos.h>
#include <windows.h>
#ifdef _WIN32
#define SYSTEM Windows
#endif // _WIN32
int main() {
int pick1 = 0;
printf("\n Are your a Male [1] or Female [2] : ");
fflush(stdin);
scanf("%d",&pick1);
while (pick1 != 1 && pick1 != 2 ){
printf("Enter a correct choice : ");
fflush(stdin);scanf("%d",&pick1);}
return 0;
}