选择题

当 a=4, b=5, c=7, d=6 时, 执行下面一段程序:
if(a<b)
if(c<d)x=1;
else
if(a<c)
if(b<c)x=2;
else x=3;
else x=4;
else x=5;
程序执行后, x 的值为

【正确答案】 B
【答案解析】