What will be the output of the following R code snippet? [code] > f <- function(a, b) { + a^2 + } > f(2) [/code]

What will be the output of the following R code snippet?
Code:
> f <- function(a, b) {
+       a^2
+ }
> f(2)
A. 4
B. 3
C. 2
D. 5
 

Tìm kiếm

Back
Top