Code:
scanf("%c",&typ);
%s is for strings