Documente Academic
Documente Profesional
Documente Cultură
1 Prerrequisitos y referencias
Prerrequisitos:
Leer Captulo 4
Language: VB .NET
Author:
Date:
Count Type
Type
Physical/Logical
Logical,
Nota 1
Statement Type
Included
Executable
Si
25-Abril-2006
Comments
Comments
Nonexecutable:
Declarations
Si, Nota 2
Compiler Directives
Si, Nota 3
Comments
No
On own lines
No
With source
No
Banners
No
Blank lines
No
Clarifications
Examples/Cases
Fin de estructuras
Si, Nota 4
ElseIF
Si
Salida de procedimiento o
bloque
SI, Nota 5
Condiciones de prueba
NO, Nota 6
Nota 1
Nota 2
Nota 3
Nota 4
Nota 5
Nota 6
Next
Return R
End Function
' Programa principal que prueba la funcin de producto de matrices
Sub Main()
Dim A(,) As Decimal = {{1, 2, 3}, {3, 2, 1}}
Dim B(,) As Decimal = {{1, 2}, {3, 1}, {2, 1}}
Dim R(,) As Decimal = Producto(A, B)
Console.WriteLine("{0} {1}" & ControlChars.CrLf & "{2} {3}", R(0, 0), R(0, 1), R(1,
0), R(1, 1))
Console.ReadLine()
End Sub
End Module