Program oji;
var x,c,b:real;
begin
writeln ('Введите дробное число');
readln (x);c:=x+100;
writeln (x,'+',100,'=',c);
b:=x-100;
writeln (x,'-',100,'=',b);
end.
<span>На пожалуйста!))))</span>
Код C++%0A1%0A2%0A3%0A4%0A5%0A6%0A7%0A8%0A9%0A10%0A11%0A12%0A13%0A14%0A15%0A16%0A17%0A18%0A19%0A20%0A21%0A22%0A23%0A24%0A25%0A26%0A27%0A28%0A29%0A30%0A31%0A32%0A33%0A34%0A35%0A36%0A37%0A38%0A39%0A40%0A41%0A42%0A43%0A44%0A45%0A46%0A47%0A#include %0A#include %0A#include %0Avoid main ()%0A{ int i, j, n;%0Aprintf ("Vvedite kol-vo strok i stolbcov massiva mas: ");%0Ascanf ("&d %d", &i, &j);%0A %0Aint mas [10] [10] = { {1, 1, 1, 1, 1, 1, 1, 1, 1, 1},%0A {1, 1, 1, 1, 1, 1, 1, 1, 1, 1},%0A {1, 1, 1, 1, 1, 1, 1, 1, 1, 1},%0A {1, 1, 1, 1, 1, 1, 1, 1, 1, 1},%0A {1, 1, 1, 1, 1, 1, 1, 1, 1, 1},%0A {1, 1, 1, 1, 1, 1, 1, 1, 1, 1},%0A {1, 1, 1, 1, 1, 1, 1, 1, 1, 1},%0A {1, 1, 1, 1, 1, 1, 1, 1, 1, 1},%0A {1, 1, 1, 1, 1, 1, 1, 1, 1, 1},%0A {1, 1, 1, 1, 1, 1, 1, 1, 1, 1} };%0A %0A %0An=9;%0A %0Afor (a=0; a<=3; a++)%0A...%0A(Нужно сгенерировать цикл, в котором числу а присваивается случайное значение.%0AВ итоге должна получиться матрица, в которой в определенных местах вставлены нули)%0A %0A %0Aswitch (mas [i] [j])%0A{%0Acase 0: mas [i] [j] = 0; mas [j] [10-i+1] = 1; mas [10-j+1] [i] = 1; mas [10-i+1] [10-j+1] = 1; break;%0A %0Acase 1: mas [j] [10-i+1] = 0; mas [i] [j] = 1; mas [10-j+1] [i] = 1; mas [10-i+1] [10-j+1] = 1; break;%0A %0Acase 2: mas [10-j+1] [i] = 0; mas [i] [j] = 1; mas [j] [10-i+1] = 1; mas [10-i+1] [10-j+1] = 1; break;%0A %0Acase 3: mas [10-i+1] [10-j+1] = 0; mas [i] [j] = 1; mas [j] [10-i+1] = 1; mas [10-j+1] [i] = 1; break;%0A %0A}%0Afor (i=0; i<(n-1); i++)%0A{%0Afor (j=0; j<(n-1); j++)%0A %0Aprintf ("reshetku mozhno sostavit, esli %d %d ravny 0, ", mas [i] [j]);%0A}%0Aprintf ("\n");%0A}