简便四则混合运算试题
- 提问者网友:相思似海深
- 2021-02-24 05:19
帮帮忙,急急急急急急急急急急急急急急急急急急急急急急急急急
- 五星知识达人网友:野慌
- 2021-02-24 05:37
(103-336÷21)×15
800-(2000-9600÷8)
40×48-(1472+328)÷5
(488+344)÷(202-194)
2940÷28+136×7
605×(500-494)-1898
(2886+6618)÷(400-346)
9125-(182+35×22)
(154-76)×(38+49)
3800-136×9-798
(104+246)×(98÷7)
918÷9×(108-99)
(8645+40×40)÷5
(2944+864)÷(113-79)
8080-1877+1881÷3
(5011-43×85)+3397
2300-1122÷(21-15)
816÷(4526-251×18)
(7353+927)÷(801-792)
(28+172)÷(24+16)
6240÷48+63×48
950-28×6+666
86×(35+117÷9)
2500+(360-160÷4)
16×4+6×3
39÷3+48÷6
24×4-42÷3
7×6-12×3
56÷4+72÷8
2940÷28×21
920-1680÷40÷7
690+47×52-398
148+3328÷64-75
360×24÷32+730
2100-94+48×54
51+(2304-2042)×23
4215+(4361-716)÷81
(247+18)×27÷25
36-720÷(360÷18)
1080÷(63-54)×80
(528+912)×5-6178
8528÷41×38-904
264+318-8280÷69
(174+209)×26- 9000
814-(278+322)÷15
1406+735×9÷45
3168-7828÷38+504
796-5040÷(630÷7)
285+(3000-372)÷36
546×(210-195)÷3045 × 2/3 + 1/3 × 15
7/19 + 12/19 × 5/6
1/4 + 3/4 ÷ 2/3
8/7 × 21/16 + 1/2
101 × 1/5 – 1/5 × 21
50+160÷40 (58+370)÷(64-45)
120-144÷18+35
347+45×2-4160÷52
(58+37)÷(64-9×5)
95÷(64-45)
178-145÷5×6+42 420+580-64×21÷28
812-700÷(9+31×11) (136+64)×(65-345÷23)
85+14×(14+208÷26)
(284+16)×(512-8208÷18)
120-36×4÷18+35
125*3+125*5+25*3+25
9999*3+101*11*(101-92)
(23/4-3/4)*(3*6+2)
3/7 × 49/9 - 4/3
8/9 × 15/36 + 1/27
12× 5/6 – 2/9 ×3
8× 5/4 + 1/4
6÷ 3/8 – 3/8 ÷6
4/7 × 5/9 + 3/7 × 5/9
5/2 -( 3/2 + 4/5 )
7/8 + ( 1/8 + 1/9 )
9 × 5/6 + 5/6
3/4 × 8/9 - 1/3
7 × 5/49 + 3/14
6 ×( 1/2 + 2/3 )
8 × 4/5 + 8 × 11/5
31 × 5/6 – 5/6
9/7 - ( 2/7 – 10/21 )
920-1680÷40÷7
690+47×52-398
97-12×6+43
26×4-125÷5
148+3328÷64-75
360×24÷32+730
2100-94+48×54
51+(2304-2042)×23
4215+(4361-716)÷81
(247+18)×27÷25
36-720÷(360÷18)
1080÷(63-54)×80
(528+912)×5-6178
8528÷41×38-904
264+318-8280÷69
(174+209)×26- 9000
814-(278+322)÷15
1406+735×9÷45
3168-7828÷38+504
796-5040÷(630÷7)
285+(3000-372)÷36
546×(210-195)÷30
3/7 × 49/9 - 4/3
8/9 × 15/36 + 1/27
12× 5/6 – 2/9 ×3
6÷ 3/8 – 3/8 ÷6
4/7 × 5/9 + 3/7 × 5/9
5/2 -( 3/2 + 4/5 )
7/8 + ( 1/8 + 1/9 )
9 × 5/6 + 5/6
3/4 × 8/9 - 1/3
7 × 5/49 + 3/14
6 ×( 1/2 + 2/3 )
8 × 4/5 + 8 × 11/5
31 × 5/6 – 5/6
9/7 - ( 2/7 – 10/21 )
5/9 × 18 – 14 × 2/7
4/5 × 25/16 + 2/3 × 3/4
14 × 8/7 – 5/6 × 12/15
17/32 – 3/4 × 9/24
3 × 2/9 + 1/3
5/7 × 3/25 + 3/7
1/5 × 2/3 + 5/6
9/22 + 1/11 ÷ 1/2
5/3 × 11/5 + 4/3
45 × 2/3 + 1/3 × 15
7/19 + 12/19 × 5/6
1/4 + 3/4 ÷ 2/3
8/7 × 21/16 + 1/2
101 × 1/5 – 1/5 × 21
50+160÷40
(58+370)÷(64-45)
120-144÷18+35
347+45×2-4160÷52
(58+37)÷(64-9×5)
95÷(64-45)
178-145÷5×6+42
420+580-64×21÷28
812-700÷(9+31×11)
(136+64)×(65-345÷23)
85+14×(14+208÷26)
(284+16)×(512-8208÷18)
120-36×4÷18+35
(58+37)÷(64-9×5)
(6.8-6.8×0.55)÷8.5
0.12× 4.8÷0.12×4.8
(3.2×1.5+2.5)÷1.6
3.2×(1.5+2.5)÷1.6
6-1.6÷4= 5.38+7.85-5.37=
7.2÷0.8-1.2×5= 6-1.19×3-0.43=
6.5×(4.8-1.2×4)= 0.68×1.9+0.32×1.9
10.15-10.75×0.4-5.7
5.8×(3.87-0.13)+4.2×3.74
32.52-(6+9.728÷3.2)×2.5
(7.1-5.6)×0.9-1.15] ÷2.5
5.4÷[2.6×(3.7-2.9)+0.62]
12×6÷(12-7.2)-6 (4)12×6÷7.2-6
2/3÷1/2-1/4×2/5
2-6/13÷9/26-2/3
2/9+1/2÷4/5+3/8
10÷5/9+1/6×4
1/2×2/5+9/10÷9/20
5/9×3/10+2/7÷2/5
1/2+1/4×4/5-1/8
3/4×5/7×4/3-1/2
23-8/9×1/27÷1/27
8×5/6+2/5÷4
1/2+3/4×5/12×4/5
8/9×3/4-3/8÷3/4
5/8÷5/4+3/23÷9/11
0.6×(1.7-0.9)÷0.24+1.25
5.4×[(2.73+1.85)÷2.29]-3.56
9405-2940÷28×21
920-1680÷40÷7
690+47×52-398
148+3328÷64-75
360×24÷32+730
2100-94+48×54
51+(2304-2042)×23
4215+(4361-716)÷81
(247+18)×27÷25
36-720÷(360÷18)
1080÷(63-54)×80
(528+912)×5-6178
8528÷41×38-904
264+318-8280÷69
(174+209)×26- 9000
814-(278+322)÷15
1406+735×9÷45
3168-7828÷38+504
796-5040÷(630÷7)
285+(3000-372)÷36
546×(210-195)÷30
20. 4/5 × 25/16 + 2/3 × 3/4
21. 14 × 8/7 – 5/6 × 12/15
22. 17/32 – 3/4 × 9/24
23. 3 × 2/9 + 1/3
24. 5/7 × 3/25 + 3/7
25. 3/14 ×× 2/3 + 1/6
26. 1/5 × 2/3 + 5/6
27. 9/22 + 1/11 ÷ 1/2
28. 5/3 × 11/5 + 4/3
29. 45 × 2/3 + 1/3 × 15
30. 7/19 + 12/19 × 5/6
31. 1/4 + 3/4 ÷ 2/3
32. 8/7 × 21/16 + 1/2
33. 101 × 1/5 – 1/5 × 21
34.50+160÷40
35.120-144÷18+35
36.347+45×2-4160÷52
37(58+37)÷(64-9×5)
38.95÷(64-45)
39.178-145÷5×6+42
40.812-700÷(9+31×11)
41.85+14×(14+208÷26)
43.120-36×4÷18+35
44.(58+37)÷(64-9×5)
45.(6.8-6.8×0.55)÷8.5
46.0.12× 4.8÷0.12×4.8
47.(3.2×1.5+2.5)÷1.6
48.6-1.6÷4= 5.38+7.85-5.37=
49.7.2÷0.8-1.2×5= 6-1.19×3-0.43=
50.6.5×(4.8-1.2×4)=
51.5.8×(3.87-0.13)+4.2×3.74
52.32.52-(6+9.728÷3.2)×2.5
53.[(7.1-5.6)×0.9-1.15] ÷2.5
54.5.4÷[2.6×(3.7-2.9)+0.62]
55.12×6÷(12-7.2)-6
56.12×6÷7.2-6
57.0.68×1.9+0.32×1.9
58.58+370)÷(64-45)
59.420+580-64×21÷28
60.136+6×(65-345÷23)
15-10.75×0.4-5.7
62.18.1+(3-0.299÷0.23)×1
63.(6.8-6.8×0.55)÷8.5
64.0.12× 4.8÷0.12×4.8
65.(3.2×1.5+2.5)÷1.6
66.3.2×6+(1.5+2.5)÷1.6
67.0.68×1.9+0.32×1.9
68.10.15-10.75×0.4-5.7
69.5.8×(3.87-0.13)+4.2×3.74
70.32.52-(6+9.728÷3.2)×2.5
71.[(7.1-5.6)×0.9-1.15] ÷2.5
72.5.4÷[2.6×(3.7-2.9)+0.62]
73.12×6÷(12-7.2)-6
74.12×6÷7.2-6
75.33.02-(148.4-90.85)÷2.5
你自己看吧!
- 1楼网友:逃夭
- 2021-02-24 07:09
#include <stdio.h> #define maxsize 16
typedef struct{ int data[maxsize]; int top; int base; }seqstack; void initstack(seqstack *); int empty(seqstack *); void push(seqstack *, int ); int pop(seqstack *); int gettop(seqstack *); int operate(int ,char ,int ); char proceed(char ,char ); int in(char ); int evalexpres(void); seqstack stackr,stackd; int main() { int v; char ch; while(1) { printf("\t@@@@@@@@本程序的功能为:用顺序栈实现整型算术表达式的求值@@@@@@@@\n"); printf("\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@-20-10-07 17:47-@@@@@@\n"); v = evalexpres(); printf("the result is:%d",v); printf("\ninput 'q' to quit and enter run again:"); do{ scanf("%c",&ch); if(ch == 'q' || ch == 'q') exit(0); }while(ch!='\n'); system("cls"); } return 0; }
void initstack(seqstack *s) { s->top = 0; s->base = 0; }
int empty(seqstack *s) { if(s->top == s->base) return 1; else return 0; }
void push(seqstack *s, int x) { if(s->top == maxsize) { printf("over flow!\n"); exit(0); } else { s->data[s->top] = x; s->top++; } }
int pop(seqstack *s) { int e; if(empty(s)) { printf("under flow!\n"); return 0; } else { s->top--; e = s->data[s->top]; return e; } }
int gettop(seqstack *s) { if(empty(s)) { printf("under flow!\n"); return 0; } else return s->data[s->top-1]; }
int evalexpres(void) { int a,b,i=0,s=0; char c[80],r; initstack(&stackr); push(&stackr,'#'); initstack(&stackd); printf(" 请输入表达式并以‘#’结束:"); gets(c); while(c[i]!='#' || gettop(&stackr)!='#') { if(!in(c[i])) { if(c[i] >= '0' && c[i] <= '9') { s += c[i]-'0'; while(!in(c[++i])) { s*=10; s += c[i]-'0'; } push(&stackd,s+'0'); s = 0; } else { printf("你输入的表达式有误!\n"); return 0; } } else switch(proceed(gettop(&stackr),c[i])) { case '<': push(&stackr,c[i]); i++; break; case '=': pop(&stackr); i++; break; case '>': r = pop(&stackr); a = pop(&stackd)-'0'; b = pop(&stackd)-'0'; push(&stackd,operate(a,r,b)) ; break; } } return (gettop(&stackd)-'0'); }
int in(char c) { char ch[7]={'+','-','*','/','#','(',')'}; int i; for(i = 0; i < 7; i++) if(c == ch[i]) return 1; return 0; }
char proceed(char op,char c) { char ch; if(op=='(' && c==')' || op=='#' && c=='#' ) ch = '='; else if(op=='+' || op=='-') switch(c) { case '+': case '-': case ')': case '#': ch = '>'; break; case '*': case '/': case '(': ch = '<'; }
......(1059402961) 21:26:50 else if(op=='*' || op=='/') switch(c) { case '+': case '-': case '*': case '/': case ')': case '#': ch = '>'; break; case '(': ch = '<'; } else if(op=='(') switch(c) { case '+': case '-': case '*': case '/': case '(': ch = '<'; break; case '#': printf("error!\n"); exit(0); } else if(op==')') switch(c) { case '+': case '-': case '*': case '/': case '#': ch = '>'; break; case '(': printf("error!\n"); exit(0); } else if(op=='#') switch(c) { case '+': case '-': case '*': case '/': case '(': ch = '<'; break; case ')': printf("error!\n"); exit(0); } return ch; } int operate(int a,char r,int b) { int s; int d1 = a; int d2 = b; switch(r) { case '+': s = d1+d2; break; case '-': s = d2-d1; break; case '*': s = d1*d2; break; case '/': s = d2/d1; } return (s+'0'); }
- 2楼网友:神也偏爱
- 2021-02-24 06:12