#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define N J
Main ()
{
int a,b,k,i,n,c,d,e,f,j;
do{
printf ("\ n input Quantity:");
scanf ("%d", &j);
printf ("\ n input type (1. True score 2. Integer)");
scanf ("%d", &n);
Switch (n)
{
Case 1:
{
for (i=0;i<n;i++)
{
E=rand ()%100+1;
F=rand ()%100+1;
K=rand ()%4+1;
if (e>=f)
printf ("%d/%d", f,e);
Else
printf ("%d/%d", e,f);
Switch (k)
{
Case 1:printf ("+");
Case 2:printf ("-");
Case 3:printf ("*");
Case 4:printf ("/");
}
C=rand ()%100+1;
D=rand ()%100+1;
if (C>=d)
printf ("%d/%d=\t\t", d,c);
Else
printf ("%d/%d=\t\t", c,d);
}
Break
}
Break
Case 2:
{
for (i=0;i<n;i++)
{
A=rand ()%100+1;
B=rand ()%100+1;
K=rand ()%4+1;
printf ("%d", a);
Switch (k)
{
Case 1:printf ("+");
Case 2:printf ("-");
Case 3:printf ("*");
Case 4:printf ("/");
}
printf ("%d=\t\t", b);
}
Break
}
Break
}
}while (N!=-1);
}
About operations with true fractions