Easy
Count Lines
Read n, then n lines, and write them to
data.txt (one per line). Then read the file and print how many lines it has.Input
n, then n lines.
Output
A count.
Sample 1
Input
3 a b c
Output
3
Sample 2
Input
1 x
Output
1
Output appears here