You will need a loop of some form: C - Loops
], but you can't compare user input to a string literaL in C - it just doesn't have any idea how to do that.
To compare two null terminated strings in C, you will either have to use library functions such as
: C strcmp() - C Standard Library
] or write your own character-by-character comparison code.
Do bear in mind that upper and lower case characters are different: 'B' is not the same as 'b' and a simple compare will not match "Bob" and "bob".