General doubt in loops

can we write this program as
for(char ch i=cin<<ch; ch!="";cin<<n);
cout<<ch;

Hello @viknesh1375 what are you trying to do by this?
the syntax is not right of cin.
and even not of for loop there should be any valid conditions.
i dont think this is right.
if you are trying to do any particular question you can ask here:
Happy Learning!!

sry cin>>ch the program should get input and print it until it is null character

even if you will do that i think your code will not work fine but the same you can do with the help of the while loop.
Happy Learning!!

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.