dawud's blog

By dawud, history, 2 years ago, In English

Hi, Recently while practicing I found this problem, Please run this code in your local machine.


If you run this code you should see something like this


Your can also see this code running in IDEONE
You can see there from i = 16 , the program is giving wrong output.
There should be all 1s in every number.
Can anyone please tell me

  • Why this is giving wrong result even in this small range ?
  • And how to avoid this type of calculation problem ?

Thanks in advance ❤️❤️❤️

Full text and comments »

  • Vote: I like it
  • -24
  • Vote: I do not like it