Подставляем значения в формулы и считаем:
a) rez:=1+1=1
b) rez:=1*1*1*0=0 (b>30 не выполн., поэтому там 0)
с) rez:=(не 1)+0=0
<span>import java.util.Arrays<span>;
</span>import java.util.Random<span>;
</span>
public class Task2 {
final static int BOUND = 100<span>;
</span> final static int SIZE = 10<span>;
</span>
public static void main(String[] args) {
int[] a = new int[SIZE]<span>;
</span> Random random = new Random()<span>;
</span> for(int i = 0; i < SIZE; a[i] = random.nextInt(BOUND), i++)<span>;
</span> Arrays.stream(a).forEach(x -> System.out.print(x + " "))<span>;
</span> System.out.println("\n" + Arrays.stream(a)
.filter(x -> x > 30 && x < 70).toArray().length)<span>;
</span> }
}
</span>
Var
a,chislo,t:longint;
<span>c,nov,posl:integer; </span>
<span>begin </span>
<span>readln(a); </span>
<span>posl:=a mod 10; </span>
<span>chislo:=a; </span>
<span>t:=1; </span>
<span>repeat </span>
<span>a:=a div 10; </span>
<span>t:=t*10; </span>
<span>until a<10; </span>
<span>chislo:=chislo mod t; </span>
<span>chislo:=posl*t+chislo-posl+a; </span>
<span>writeln(chislo); </span>
<span>readln; </span>
<span>end.</span>
<span>1) </span><span>program</span> Mult<span>(</span>output<span>)</span>; <span>begin</span> var k,m: integer; k:=12; m:=1; while(k<800) begin m:=m*k; k:=k+12; end; write(m); <span>end</span>.
2) <span>program</span> EvenNumbers<span>(</span>output<span>)</span>; <span>begin</span> n, m, even, i: integer; even:=0; write('Enter number N: '); read(n); writeln(); if n<=0 then exit; write('Enter a number: '); for i:=1 to n do begin read(m); writeln(); if i<n then begin write('Enter a number: '); end; if m div 2 = 0 then even:=even+1; end; write(even); <span>end</span>.
3) <span>program</span> Mine<span>(</span>output<span>)</span>; <span>var</span> i <span>:</span><span>integer</span>; function Print<span>(</span><span>var</span> j <span>:</span><span>integer</span><span>)</span>;real; <span>begin</span> Print:=1/<span>exp(ln(j) * </span>5<span>)</span><span>end</span>; <span>begin</span> n,i:integer; m:real; write('Enter number N: '); read(n); m:=0; for i:=1 to n do m:=m+Print(i); writeln(); write(m); <span>end</span>.