VERSION 5.00
Begin VB.Form frm1 
   BackColor       =   &H00C0C000&
   Caption         =   "Полусумматор"
   ClientHeight    =   2952
   ClientLeft      =   4140
   ClientTop       =   3456
   ClientWidth     =   6732
   DrawWidth       =   2
   BeginProperty Font 
      Name            =   "Times New Roman"
      Size            =   12
      Charset         =   204
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form1"
   ScaleHeight     =   2952
   ScaleWidth      =   6732
   Begin VB.TextBox txtS 
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   13.8
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   300
      Left            =   5640
      TabIndex        =   10
      Top             =   1560
      Width           =   732
   End
   Begin VB.TextBox txtOr 
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   13.8
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   300
      Left            =   1920
      TabIndex        =   8
      Top             =   1800
      Width           =   732
   End
   Begin VB.TextBox txtOtr 
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   13.8
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   300
      Left            =   3840
      TabIndex        =   6
      Top             =   1320
      Width           =   732
   End
   Begin VB.TextBox txtP 
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   13.8
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   300
      Left            =   1920
      TabIndex        =   4
      Top             =   600
      Width           =   732
   End
   Begin VB.TextBox txtB 
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   13.8
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   288
      Left            =   0
      TabIndex        =   2
      Top             =   840
      Width           =   732
   End
   Begin VB.TextBox txtA 
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   13.8
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   300
      Left            =   0
      TabIndex        =   1
      Top             =   480
      Width           =   732
   End
   Begin VB.CommandButton cmd1 
      BackColor       =   &H00404000&
      Caption         =   "Перенос и сумма"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   7.8
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   372
      Left            =   2160
      TabIndex        =   0
      Top             =   2520
      Width           =   2652
   End
   Begin VB.Line Line1 
      X1              =   2640
      X2              =   6480
      Y1              =   720
      Y2              =   720
   End
   Begin VB.Line Line17 
      X1              =   6360
      X2              =   6480
      Y1              =   1800
      Y2              =   1800
   End
   Begin VB.Line Line16 
      X1              =   5520
      X2              =   5640
      Y1              =   1800
      Y2              =   1800
   End
   Begin VB.Line Line15 
      X1              =   4560
      X2              =   4800
      Y1              =   1560
      Y2              =   1560
   End
   Begin VB.Line Line14 
      X1              =   2640
      X2              =   4800
      Y1              =   1920
      Y2              =   1920
   End
   Begin VB.Label lblAnd2 
      Alignment       =   2  'Center
      Caption         =   "И"
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   13.8
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   612
      Left            =   4800
      TabIndex        =   9
      Top             =   1440
      Width           =   732
   End
   Begin VB.Line Line13 
      X1              =   1800
      X2              =   1920
      Y1              =   1920
      Y2              =   1920
   End
   Begin VB.Line Line12 
      X1              =   1080
      X2              =   840
      Y1              =   1920
      Y2              =   1920
   End
   Begin VB.Line Line11 
      X1              =   840
      X2              =   840
      Y1              =   960
      Y2              =   1920
   End
   Begin VB.Line Line10 
      X1              =   960
      X2              =   1080
      Y1              =   1680
      Y2              =   1680
   End
   Begin VB.Line Line9 
      X1              =   960
      X2              =   960
      Y1              =   600
      Y2              =   1680
   End
   Begin VB.Label lblOr 
      Alignment       =   2  'Center
      Caption         =   "ИЛИ"
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   13.8
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   612
      Left            =   1080
      TabIndex        =   7
      Top             =   1560
      Width           =   732
   End
   Begin VB.Line Line7 
      X1              =   720
      X2              =   1080
      Y1              =   960
      Y2              =   960
   End
   Begin VB.Line Line6 
      X1              =   3720
      X2              =   3840
      Y1              =   1440
      Y2              =   1440
   End
   Begin VB.Line Line5 
      X1              =   2760
      X2              =   3000
      Y1              =   1440
      Y2              =   1440
   End
   Begin VB.Line Line4 
      X1              =   720
      X2              =   1080
      Y1              =   600
      Y2              =   600
   End
   Begin VB.Line Line3 
      X1              =   1800
      X2              =   1920
      Y1              =   720
      Y2              =   720
   End
   Begin VB.Line Line2 
      X1              =   2760
      X2              =   2760
      Y1              =   720
      Y2              =   1440
   End
   Begin VB.Label lblOtr 
      Alignment       =   2  'Center
      Caption         =   "НЕ"
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   13.8
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   612
      Left            =   3000
      TabIndex        =   5
      Top             =   1080
      Width           =   732
   End
   Begin VB.Label lblAnd 
      Alignment       =   2  'Center
      Caption         =   "И"
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   13.8
         Charset         =   204
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   612
      Left            =   1080
      TabIndex        =   3
      Top             =   480
      Width           =   732
   End
End
Attribute VB_Name = "frm1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim blnA, blnB, blnP, blnS As Boolean
Sub cmd1_Click()
blnA = txtA.Text
blnB = txtB.Text
blnP = blnA And blnB
blnS = (blnA Or blnB) And Not (blnA And blnB)
txtP.Text = blnP
txtOtr.Text = Not blnP
txtOr.Text = blnA Or blnB
txtS.Text = blnS
End Sub

