program tz5; constn=20; vara,z: array [1..n] of integer; i,b,x: byte; beginrandomize; for i: =1 to n do begin a[i]: =random (20); a[i]: =a[i]-10; writeln(i,' ',a[i]); end; b: =0; for i: =1 to n do b: =b+a[i]; x: =1; writeln; for i: =1 to n do if a[i]> b/n then begin z[x]: =a[i]; x: =x+1; end; for i: =1 to x do writeln(i,' ',z[i]); readln; end.
mmurzina
10.03.2020
1. n = int(input("n=")) heads = n * 3 if n < = 100 else 100 * 3 + (n - 100) * 2 eyes = heads * 2 print(heads) print(eyes) 2. используется прямая формула для н-ого члена for x in range(1, 9): print(int((1/(5**0.5))*+5**0.5)/2)**-5**0.5)/2)** 3. try: num = int(input("n=")) except valueerror: print('not a number') if num > 2000000: print('too big') else: print(len(str( 5. a = abs(int(input('a=' b = abs(int(input('b=' while a! =0 and b! =0: if a > b: a %= b else: b %= a print(a + b)
program tz5; constn=20; vara,z: array [1..n] of integer; i,b,x: byte; beginrandomize; for i: =1 to n do begin a[i]: =random (20); a[i]: =a[i]-10; writeln(i,' ',a[i]); end; b: =0; for i: =1 to n do b: =b+a[i]; x: =1; writeln; for i: =1 to n do if a[i]> b/n then begin z[x]: =a[i]; x: =x+1; end; for i: =1 to x do writeln(i,' ',z[i]); readln; end.