VERSION 5.00
Begin VB.Form frm1 
   BackColor       =   &H00FFFFFF&
   Caption         =   "Полусумматор"
   ClientHeight    =   1056
   ClientLeft      =   4140
   ClientTop       =   3456
   ClientWidth     =   2928
   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     =   1056
   ScaleWidth      =   2928
   Begin VB.CommandButton cmd1 
      BackColor       =   &H00FFFFFF&
      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          =   612
      Left            =   1320
      TabIndex        =   0
      Top             =   240
      Width           =   1332
   End
End
Attribute VB_Name = "frm1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim intA, intB, intP, intS As Integer
Sub cmd1_Click()
For intA = 0 To -1 Step -1
For intB = 0 To -1 Step -1
intP = intA And intB
intS = (intA Or intB) And Not (intA And intB)
frm1.Print -intA; -intB; -intP; -intS
Next intB
Next intA
End Sub

