News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Get wrong answer in code::Blocks

Started by lilyV1365, June 16, 2021, 05:11:31 PM

Previous topic - Next topic

lilyV1365

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 :-\

Miguel Gimenez

Read how scanf() works and some examples; if you are still stuck then look for a C programming forum and ask there.

lilyV1365