1. Module6.vb
Module Module6
Sub Main()
System.Console.Write("Sum is" & " " & Add())
Console.ReadLine()
'calling the function
End Sub
Public Function Add() As Integer
'declaring a function add
Dim i, j As Integer
'declaring two integers and assigning values to them
i = 10
j = 20
Return (i + j)
'performing the sum of two integers and returning it's value
End Function
End Module
https://www.youtube.com/channel/UCKLRUr6U5OFeu7FLOpQ-FSw/videos
Module Module6
Sub Main()
System.Console.Write("Sum is" & " " & Add())
Console.ReadLine()
'calling the function
End Sub
Public Function Add() As Integer
'declaring a function add
Dim i, j As Integer
'declaring two integers and assigning values to them
i = 10
j = 20
Return (i + j)
'performing the sum of two integers and returning it's value
End Function
End Module
https://www.youtube.com/channel/UCKLRUr6U5OFeu7FLOpQ-FSw/videos
0 comments
Post a Comment