Von Neuman Loves Binary
Hello @Pritam,
Your code is picking junk values as ch due to cin.get()
For better understanding run the following code for sample testcase:
You can refer to the following code for this problem:
Hope, this would help.
Hello @Pritam,
Your code is picking junk values as ch due to cin.get()
For better understanding run the following code for sample testcase:
You can refer to the following code for this problem:
Hope, this would help.