2 STRING IN SAME LINE

Hi
How can we take 2 string input in same line
Please share the syntax

@Prakhar_Nagpal why do you want to? i mean you can using getline then iterating it again and spilt it when space comes but why so much work. if in a you are given two strings separated by space just take input normally like this as space or newline same thing
string a,b;
cin>>a>>b;
just like this
dont forget to hit like and mark resolved if cleared :smiley: