#include <stdio.h>
int main(void) {
int number;
int x1
= rand() % 100 + 1; int x2
= rand() % 100 + 1;
printf("Proizvoditsya vicheslenie\n");
number = x1 * x2;
printf("Umnojenie\n |===================|\n"); printf(" %d * %d = %d\n", x1
, x2
, number
);
number = x1 / x2;
printf("Delenie\n |===================|\n"); printf(" %.d / %.d = %d\n", x1
, x2
, number
);
number = x1 + x2;
printf("Slojenie\n |===================|\n"); printf(" %d + %d = %d\n", x1
, x2
, number
);
number = x1 - x2;
printf("Vichitanie\n |===================|\n"); printf(" %d - %d = %d\n", x1
, x2
, number
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CglzcmFuZCgodW5zaWduZWQpdGltZShOVUxMKSk7CglpbnQgbnVtYmVyOwoJaW50IHgxID0gcmFuZCgpICUgMTAwICsgMTsKCWludCB4MiA9IHJhbmQoKSAlIDEwMCArIDE7CgoJcHJpbnRmKCJQcm9penZvZGl0c3lhIHZpY2hlc2xlbmllXG4iKTsKCQoJbnVtYmVyID0geDEgKiB4MjsKCXByaW50ZigiVW1ub2plbmllXG4gfD09PT09PT09PT09PT09PT09PT18XG4iKTsKCXByaW50ZigiICAgICAlZCAqICVkID0gJWRcbiIsIHgxLCB4MiwgbnVtYmVyKTsKCgludW1iZXIgPSB4MSAvIHgyOwoJcHJpbnRmKCJEZWxlbmllXG4gfD09PT09PT09PT09PT09PT09PT18XG4iKTsKCXByaW50ZigiICAgICAlLmQgLyAlLmQgPSAlZFxuIiwgeDEsIHgyLCBudW1iZXIpOwoJCgludW1iZXIgPSB4MSArIHgyOwoJcHJpbnRmKCJTbG9qZW5pZVxuIHw9PT09PT09PT09PT09PT09PT09fFxuIik7CglwcmludGYoIiAgICAgJWQgKyAlZCA9ICVkXG4iLCB4MSwgeDIsIG51bWJlcik7CgoJbnVtYmVyID0geDEgLSB4MjsKCXByaW50ZigiVmljaGl0YW5pZVxuIHw9PT09PT09PT09PT09PT09PT09fFxuIik7CglwcmludGYoIiAgICAgJWQgLSAlZCA9ICVkXG4iLCB4MSwgeDIsIG51bWJlcik7CglyZXR1cm4gMDsKfQo=