chomp() is an inbuilt function in julia which is used to remove a single trailing newline from a string.
- s::AbstractString: Specified string.
Returns: It returns a new string after removal of a single trailing newline.
GFG Geeks Geeks forGeeks GFG gfg
1+2+3 1+2+3 1+2+3 4+5+6 1*2 3*4
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.