Count Lines
Easy📝 Description
Count the number of lines in a multi-line string
Input Format
Multi-line string
Output Format
Number of lines
Constraints
1 ≤ string.length ≤ 1000
🔍 Sample Input
"Line1
Line2
Line3"
✅ Sample Output
3
Code Editor
Please login to run and submit code.
Results
Suggested Solution
Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run