以下程序的功能是从在屏幕上显示一张如下所示的菜单: *****Time***** 1morning 2afternoon 3night Please enter your choice:程序根据输入的时间序号显示相应的问候信息,选择1显示“Good morning”,选择2显示“Good afternoon”,选择3显示“Good night”,其他选择显示“Selection error!”程序运行示例1:*****time*****1 morning2 afternoon3 nightPlease enter your choice: 2↙good afternoon程序运行示例2:*****time*****1 morning2 afternoon3 nightPlease enter your choice: 6↙Selection error!将下面程序填写完整#include
voiddisplay();voidchoice(intx);intmain(){intn;_____________;scanf("%d",&n);____________;return0;}voiddisplay(){printf("*****time*****\n");printf("1morning\n");printf("2afternoon\n");printf("3night\n");printf("Pleaseenteryourchoice:");}voidchoice(_____________){switch(x){case_____________:printf("goodmorning\n");break;case_____________:printf("goodafternoon\n");break;case_____________:printf("goodnight\n");break;default:printf("Selectionerror!\n");}}