Take multiple line in input

how to take multiple line input using string datatype

hi @guptanikhil898 do you want to take multiple sentences as input or do you want to take paragraphs containing \n newline character as input?
case 1
hello. this is a sentence. another one.
case 2

hello.
this is a sentence.
another one.

you can use getline function for both of these cases, here’s an article about its usage. This article has examples for both these cases, please have a look.

Mark the doubt as resolved if you dont have any further queries, otherwise please let me know.

i am talking about case 2

hi @guptanikhil898 did you find what you were looking for in that article?

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.