Problem title-can you read this

https://ide.codingblocks.com/s/61130
trying to get output with 1 loop and one iteration

Hi Atishay, the error was because of the scanf statement. Use cin instead. I’ve modified your code and it’s working fine and you can refer to it here https://ide.codingblocks.com/s/61133.

1 Like