1 #include <stdio.h>
2 #include <stdlib.h>
3 Main ()
4 {
5 int a[50];
6 int b[50];
7 int num,count,i;
8 printf ("1. addition \ n");
9 printf ("2. Subtraction \ n");
printf ("3. multiplication \ n");
printf ("4. Division \ n");
printf ("0. exit \ n");
printf ("Please select the type of topic required:");
scanf ("%d", &num);
do{
Switch (NUM)
17 {
Case 1:
printf ("Please select the number of topics required (<50)");
scanf ("%d", &count);
for (i=0;i<count;i++)
22 {
A[i]=rand ()%100+1;
B[i]=rand ()%100+1;
printf ("%d+%d= \ n", A[i],b[i]);
26}
break;
Case 2:
printf ("Please select the number of topics required (<50)");
scanf ("%d", &count);
for (i=0;i<count;i++)
32 {
A[i]=rand ()%100+1;
B[i]=rand ()%100+1;
printf ("%d-%d= \ n", A[i],b[i]);
36}
PNS break;
Case 3:
("Please select the number of topics to be asked (<50)");
scanf ("%d", &count);
for (i=0;i<count;i++)
42 {
A[i]=rand ()%100+1;
B[i]=rand ()%100+1;
printf ("%d*%d= \ n", A[i],b[i]);
46}
a break;
4:
("Please select the number of topics required (<50)");
scanf ("%d", &count);
Wuyi for (i=0;i<count;i++)
52 {
A[i]=rand ()%100+1;
B[i]=rand ()%100+1;
printf ("%d/%d= \ n", A[i],b[i]);
56}
a break;
58}
("1. addition \ n");
printf ("2. Subtraction \ n");
("3. multiplication \ n");
("4. Division \ n");
printf ("0. exit \ n");
printf ("Please select the type of topic required:");
scanf ("%d", &num);
The System ("CLS");
}while (num>0&&num<5);
Exit (0);
69}
The algorithm of arithmetic