MAGIC(MATH) in C - CRACK IT IF YOU CAN!!!

Hi friends,

When I was doing my C language course... My instructor shown a small magic and asked us to find the logic behind it... I and my friends took one day to crack it...
Do you wanna know... what is that magic???
Would you like to crack it???
Could you crack it???
Ok here is the link for that .exe file... Download it and command the answer IF YOU CAN...

DOWNLOAD(.ZIP)

(Friends, the above link will open the MEGAUPLOAD site... you need to wait for 30 to 40 sec and then click on the regular download..and then you can download the zip file..you need to extract the zip to get the exe file- this is because i cannot upload or link the exe file directly from my system)..

ANSWER:
It’s been a week; I didn't receive any response... So here is solution...

Whatever may be the number... When you add the digits and subtract it from the number... the result will be multiples of 9... So each time, I gave the same symbol for the all multiples of 9... so your symbol has to be, the symbol which I gave for those multiples of 9…

And here is the source code…

SOURCE CODE

2 comments:

emonit said...

Hi when selecting nos. from 00 to 09 it should be reversed when subtracting you din't mention it.ya multiples of 9 symbols are same and displayed always good one!...and can you explain how t-- works when it is initialized to '0'?

ALAGAPPAN said...

emonit..i'm very sorry for this late reply...
you no need to reverse any numbers.. take any number within 100 and add the digits and subtract it from the same number, you will end up with multiples of 9..for example,
00-09 -on subtraction-> 0
10-19 -on subtraction-> 9
20-29 -on subtraction-> 18.. so on..

In the program all the multiples of 9 will have the same symbol, which i displayed as your symbol...

i don't understand the your lost question "and can you explain how it works when it is initialized to '0'?...
but i rotate the symbol each time...

Newer Post Older Post Home

About Me

My photo
Hi everyone,myself Alagappan...electronic and communication engg. student... living in madurai... interested in everything... want to achieve something great in my lifetime...

Followers


Recent Comments