谁能帮我解决这道C语言题
来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/11/12 23:02:13
谁能帮我解决这道C语言题
#include
#include
#include
main()
{
int xz,a,b,i,da,c,n;
char zl='y';
srand(time(0));
n=0;
while(zl=='y'||zl=='Y')
{
printf(" 菜单 \n");
printf("1.10加法题\n");
printf("2.10减法题\n");
printf("3.10乘法题\n");
printf("4.10除法题\n");
printf("5.退出\n");
printf("请选择相应的选项\n");
scanf("%d",&xz);
n=0;
switch(xz)
{
case 1:
for(i=1;i
#include
#include
#include
main()
{
int xz,a,b,i,da,c,n;
char zl='y';
srand(time(0));
n=0;
while(zl=='y'||zl=='Y')
{
printf(" 菜单 \n");
printf("1.10加法题\n");
printf("2.10减法题\n");
printf("3.10乘法题\n");
printf("4.10除法题\n");
printf("5.退出\n");
printf("请选择相应的选项\n");
scanf("%d",&xz);
n=0;
switch(xz)
{
case 1:
for(i=1;i
给你稍改了下,如有不明,可留言
#include
#include
#include
main()
{
int i,num=0;
int a,b,c;
float d,d_answer;
int answer;
int choose;
char ch='Y';
srand(time(0));
while(ch=='y'||ch=='Y')
{
printf(" 菜单 \n");
printf("1.10加法题\n");
printf("2.10减法题\n");
printf("3.10乘法题\n");
printf("4.10除法题\n");
printf("5.退出\n");
printf("请选择相应的选项\n");
scanf("%d",&choose);
switch(choose)
{
case 1:
for(i=1;i
#include
#include
#include
main()
{
int i,num=0;
int a,b,c;
float d,d_answer;
int answer;
int choose;
char ch='Y';
srand(time(0));
while(ch=='y'||ch=='Y')
{
printf(" 菜单 \n");
printf("1.10加法题\n");
printf("2.10减法题\n");
printf("3.10乘法题\n");
printf("4.10除法题\n");
printf("5.退出\n");
printf("请选择相应的选项\n");
scanf("%d",&choose);
switch(choose)
{
case 1:
for(i=1;i