Should the following code work:
Thank You.Code:#include <stdio.h> int main() { int users[3]= {1, 2, 3}; int user[8]; int count; puts("Enter usernumber: "); scanf(" %d", &user); for (count = 0; count < 4; count++) { if (user == users[count]) { puts("User found!"); } } getchar(); getchar(); return 0; }