VERSION 5.00
Begin VB.Form Form1 
   BackColor       =   &H80000005&
   Caption         =   "Задание 5.28"
   ClientHeight    =   1020
   ClientLeft      =   3516
   ClientTop       =   3612
   ClientWidth     =   4872
   BeginProperty Font 
      Name            =   "Times New Roman"
      Size            =   8.4
      Charset         =   204
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form1"
   ScaleHeight     =   1020
   ScaleWidth      =   4872
   Begin VB.CommandButton cmd1 
      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          =   495
      Left            =   1440
      TabIndex        =   0
      Top             =   360
      Width           =   1215
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim intN, intN1, intN2 As Integer, bytI, bytJ As Byte, sngA(1 To 10) As Single
Private Sub cmd1_Click()
intN = Val(InputBox("Введите целое десятичное число", "Ввод числа", 1))
intN2 = intN
bytI = 0
Do While intN > 0
bytI = bytI + 1
sngA(bytI) = intN Mod 10
intN = Int(intN / 10)
Loop
intN1 = sngA(1)
For bytJ = 2 To bytI
intN1 = intN1 * 10 + sngA(bytJ)
Next bytJ
Print "Исходное число  "; intN2; "  Перевертыш  "; intN1
End Sub
