#include <iostream>
//Размерность#define n 3#define m 3
//Диапозон#define d_min -8#define d_max 6
void enter_arr(int a[n][m]) { printf("\n >> Введите элементы массива \%dx\%d\n",n,m); for (int i = 0; i < n; i++) { printf("\n"); for (int j = 0; j < m; j++) { printf(" << a[\%d][\%d] = ", i+1, j+1); scanf("\%d",&a[i][j]); } }}
void print_arr(int a[n][m]) { printf("\n >> Массив \%dx\%d :", n, m); for (int i = 0; i < n; i++) { printf(" \n >> "); for (int j = 0; j < m; j++) printf("\%d ", a[i][j]); }}
int main(){ setlocale(LC_ALL, "rus"); int a[n][m];
enter_arr(a); print_arr(a);
for (int i = 0; i < n; i++) for (int j = 0; j < m; j++) if ((a[i][j] < d_min) || (a[i][j] > d_max)) a[i][j] *= a[i][j];
print_arr(a);
system("pause>>void"); return 0;}
Практически при помощи органов зрения -90\%
при помощи слуха - 9\%
и только приблизительно 1\% при помощи остальных органов ( осязания, обоняния , вкуса)
<span><span>uses crt;
const n=7;
var sr:real;
i:integer;
a:array[1..n] of integer;
begin
clrscr;
sr:=0;
writeln('Vvedite temperaturu za kajdyi den ');
for i:=1 to n do begin
readln(a[i]);
sr:=sr+a[i];
end;
sr:=sr/7;
write('Srednya temperatura = ',sr:0:2);
readkey;
end.</span></span>
125(8)
+
375(8)
_______
522(8) 2(8) = 10(2) 5(8) = 101(2) -> 522(8) = 101 010 010(2)
237(8)
+
712(8)
________
1151(8) 1(8) = 001(2) 5(8) = 101(2) -> 1151(8) = 1 001 101 001 (2) - на каждую цифру разряда в восьмиричной системе приходится 3 бита в двоичной системе
Sub aaa()
s = InputBox("Введите строку")
n = CInt(InputBox("Введите длину N"))
m = Len(s)
If m > n Then
s = Right(s, n)
Else
If m < n Then s = String(n - m, ".") + s
End If
MsgBox "Результат: " + s, vbInformation
End Sub