The french word for hello, bonjour means literally "good day". As a greeting, it's about as formal as hello - not too stilted, not too casual, good for almost any situation. If you only know three words of french, bonjour, pamplemousse, and merci are the way to go.