It keeps on printing something went wrong? What's wrong with my computer logic :O XDCode:int main() { char password[20]; int i = 0, tru1, tru2, tru3; printf("Enter your password (Must have 1 uppercase, lowercase and and a digit!): \n"); scanf(" %s", password); do { tru1 = 0; tru2 = 0; tru3 = 0; if (isupper(password[i])) { tru1 = 1; } else if (islower(password[i])) { tru2 = 1; } else if (isdigit(password[i])) { tru3 = 1; } else if (tru1 == 1 && tru2 == 1 && tru3 == 1) { printf("Congratulations you did it right your password is: %s", password); break; } else { printf("Something went wrong!"); break; } password[i++]; } while (i <= 20); return 0; }