LetsGetChecked interview question

Code the pythoras theorem in c++