Guest User

Untitled

a guest
Jul 12th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Module Module1
  2.     Sub Main()
  3.         Dim c, d As Integer
  4.         Dim k As Double
  5.  
  6.         Console.WriteLine("Введiть С")
  7.         c = Console.ReadLine()
  8.         Console.WriteLine("Введiть D")
  9.         d = Console.ReadLine()
  10.  
  11.         If c + d < 12 Then
  12.             k = (c - 12) / d
  13.         Else
  14.             k = (c + d) / 5
  15.         End If
  16.  
  17.         Console.WriteLine("K = " & k)
  18.         Console.ReadLine()
  19.     End Sub
  20. End Module
Add Comment
Please, Sign In to add comment