Write an R program to calculate the square of each number in a vector.
EasyProblem Statement
Write an R program to calculate the square of each number in a vector.
Sample Input
Vector: [1, 2, 3, 4, 5]
Sample Output
[1] 1 4 9 16 25
Limits
Time: 2s · Memory: 256 MB