shéi?
Who?
为什么?
Why?
为什么 is a compound of 为 (wèi, 'for') and 什么 (shénme, 'what'), literally 'for what'. It functions as a single interrogative adverb meaning 'why'.
你为什么?
nǐ wèishénme?
Why (did) you...? — More colloquial, often used as an incomplete question.
为何?
wèihé?
Why? — More formal or literary.
你为什么不来?
nǐ wèishénme bù lái?
Why didn't you come?
我有事。
wǒ yǒu shì.
I was busy.
Appropriate
Avoid when
You say 为什么 (wèishénme?). It is the standard word for 'why' in Mandarin.
It is pronounced wèishénme? with a falling tone on 'wèi', rising tone on 'shén', and neutral tone on 'me'.
Use 为什么 whenever you want to ask for a reason or cause. It works in both formal and informal situations.
Tomyo
Remember 为什么? and hundreds of other phrases with smart reviews, audio and examples.