你是C语言?
if(diet=="Y"){ H=H*1.015;}else{ printf("Your future height will be %.2f(cm)",H);}
你的”Y“应该用双引号""(英文)吧?还有记得加大括号啊,便于排查问题,不要图省事。