Составьте таблицы истинности и электорнные схемы для следующих формул: a& bva=c
273
398
Ответы на вопрос:
a | b | a& b | a& bva 0 | 0 | 0 | 0 0 | 1 | 0 | 0 1 | 0 | 0 | 1 1 | 1 | 1 | 1
а электронную в экселе) заполнишь столбики "а" , "в", а "а и в" и "а и в или а" заполни формул) зайдешь во вкладку "формулы", выберешь логические, дальше поймешь
#include < stdio.h> char main(void) { char a[5][5],b[5][5],c[5][5]; int i,j, n = 5, m = 5; printf(" array a: "); printf("\r\n"); srand(time(0)); for (i=0; i< n; i++) { for (j=0; j< m; j++) { a[i][j] = rand() %10; printf("%d ", a[i][j]); } printf("\r\n"); } printf(" array b: "); printf("\r\n"); srand(time(0)); for (i=0; i< n; i++) { for (j=0; j< m; j++) { b[i][j] =1+ rand() %9; printf("%d ", b[i][j]); } printf("\r\n"); } printf(" array c: "); printf("\r\n"); for (i=0; i< n; i++) { for (j=0; j< m; j++) { if (a[i][j]> b[i][j]) c[i][j] = a[i][j]; else c[i][j] = b[i][j]; printf("%d ", c[i][j]); } printf("\r\n"); } } //////////////////////////// паскаль ///////////////////////// program asd; const n=3; m=3; var a,b,c: array[1..n,1..m] of integer; i,j: integer; begin writeln('массив а: '); for i: =1 to n do begin for j: =1 to m do begin a[i,j]: =random(10); write(a[i,j]: 3); end; writeln; end; writeln; writeln('массив b: '); for i: =1 to n do begin for j: =1 to m do begin b[i,j]: =random(10); write(b[i,j]: 3); end; writeln; end; writeln; writeln('массив c: '); for i: =1 to n do begin for j: =1 to m do begin if a[i,j]> b[i,j] then c[i,j]: =a[i,j] else c[i,j]: =b[i,j]; write(c[i,j]: 3); end; writeln; end; end.
Популярно: Информатика
-
lyubimov2005123.04.2021 18:32
-
zahidamamirova25.11.2022 09:49
-
ls0xhand21.09.2022 19:36
-
ksyu555114.05.2022 00:15
-
lizachumakova227.03.2021 04:58
-
сашулька0000104.03.2022 06:03
-
omelyanovichni07.01.2023 09:57
-
robiya8606.12.2022 11:05
-
kingoflfmvd29.01.2020 22:04
-
vovadj1723.06.2021 08:33