Driver code
public static void Main ( string [ ] args ) { int level = 3 , pos = 4 ; string prof = ( findProffesion ( level , pos ) == ' e ' ) ? " Engineer " : " Doctor " ; Console . Write ( prof ) ; } }