嘿呦黑呦hei 2021-11-25 14:42 采纳率: 66.7%
浏览 192
已结题

c语言简易菜单的制作

使用switch语句

img

  • 写回答

1条回答 默认 最新

  • ヾ凉秋 2021-11-25 14:52
    关注
    #include<stdio.h>
    int main()
    {
        printf(":)Welcome to the experiments of Euler's constante.\n");
        printf(":)The system has chosen four formulas to compute e.\n");
        printf(":)Please picka choice shown on the menu:\n");
        printf("==============Menu===============\n");
            printf("a.Use formula(a) to compute e.\n");    
        printf("b.Use formula(b) to compute e.\n");    
        printf("c.Use formula(c) to compute e.\n");    
        printf("d.Use formula(d) to compute e.\n");    
        printf("e.Print e.\n");
        printf("f.Some action\n");
        printf("q.Quit\n");
            printf("==============================");
    return 0; 
    }
    
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 12月4日
  • 已采纳回答 11月26日
  • 修改了问题 11月25日
  • 创建了问题 11月25日