Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Create a vector containing the numbers 1, 2, 3, 4, 5 and print it.

Easy

Problem Statement

Create a vector containing the numbers 1, 2, 3, 4, 5 and print it.

Sample Input

None

Sample Output

[1] 1 2 3 4 5

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
# Predefined structure vector <- c(1, 2, 3, 4, 5) print(vector)
Log in or sign up to run or submit your code.Log inSign up
Input
None
Expected Output
[1] 1 2 3 4 5