Author Topic: Get wrong answer in code::Blocks  (Read 5598 times)

Offline lilyV1365

  • Single posting newcomer
  • *
  • Posts: 3
Get wrong answer in code::Blocks
« on: June 16, 2021, 05:11:31 pm »
Hi
I've been started to learn C program with code::blocks
I downloaded this version (codeblocks-20.03mingw-setup) from the site

Now when I just write a simple code for sum two digit, I get wrong result,
for example : 3+5 get 16 for answer
I put the screen from the operation and run and result

Please someone help me
I don't know what to do :-\

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: Get wrong answer in code::Blocks
« Reply #1 on: June 16, 2021, 05:42:43 pm »
Read how scanf() works and some examples; if you are still stuck then look for a C programming forum and ask there.

Offline lilyV1365

  • Single posting newcomer
  • *
  • Posts: 3
Re: Get wrong answer in code::Blocks
« Reply #2 on: June 16, 2021, 07:01:41 pm »
Thank you :)