Mauzzz0

[VB] 1

Dec 10th, 2019
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.48 KB | None | 0 0
  1. Imports System
  2.  
  3. Module Program
  4.     Sub Main(args As String())
  5.         Dim N As Integer
  6.         Dim c As Integer
  7.         c = 0
  8.         N = Console.ReadLine
  9.         Dim matr(N, N) As Integer
  10.  
  11.         For i As Integer = 1 To N
  12.             For j As Integer = 1 To N
  13.                 If matr(i, j) < 0 Then
  14.                     c = c + 1
  15.                     Exit For
  16.                 End If
  17.             Next j
  18.         Next i
  19.  
  20.  
  21.  
  22.         Console.WriteLine(c)
  23.     End Sub
  24. End Module
Advertisement
Add Comment
Please, Sign In to add comment