أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.
about string
Strings are nothing but a series of characters stored in a particular variable.
you can take a sentence as an input from the user using string, whereas when you use char it should be like Y/N.
I hope this helps.