#include int main() { srand(time(NULL)); char localStr[100]; int magicNumber = rand() % 100; int userCode = 0xBBBBBBBB; printf("Username? "); fgets(localStr, sizeof(localStr), stdin); printf("Hello "); printf(localStr); printf("What is the access code? "); fgets(localStr, sizeof(localStr), stdin); userCode = atoi(localStr); if (userCode == magicNumber) printf("You win!\n"); return 0; }