执行下面程序的输出结果为( )。
#include<stdio.h>
void main() {
int x=5,y=8,z=6,w=0;
if(x>=y) w=x; else w=y;
if(w<z) w=z;
printf("w=%d\n",w);
}

出自:国家开放大学C语言程序设计课程