💡 Ultra-Fast-Mathematicians


whats the problem in this

I have edited your code, just change getline to cin, it will work,

y are we not using getline.

This is because, cin will take input up to a space.Thus will have two different strings, whereas,
getline() will take entire input, thus will treat both strings as a single string only.