Which is the correct way to define a function named Square that receives an integer and returns an integer representing the square of the input value?
a.```
Function Square(ByVal intNum as Integer) As Integer
Return intNum * intNum
End Function
```
b.```
Function Square(ByVal intNum as Integer)
Return intNum * intNum
End Function
```
c.```
Function Square(ByVal intNum as Integer) As Double
Return intNum * intNum
End Function
```
d.```
Function Square(ByVal intNum as Integer) As Double
Dim dblAns as Double
dblAns = intNum * intNum
Return dblAns
End Function
```
a.```
Function Square(ByVal intNum as Integer) As Integer
Return intNum * intNum
End Function
```
You might also like to view...
Conditional expressions can be expressed in various types of statements, such as True/False, OpenQuery Actions, and SetWarnings, in macros
Indicate whether the statement is true or false
Which of the following is NOT a scripting language?
A. PHP B. C++ C. JavaScript D. ASP