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

FUZZY LOGIC

Hi friends,
One of my junior asked me about FUZZY LOGIC.. so i learned about it.. i would like to share it with you all..
so it is..

FUZZY LOGIC
if you ask me for the definition.. i would say as it is given in the Wikipedia..
"Fuzzy logic is a form of many-valued logic derived from fuzzy set theory to deal with reasoning that is robust and approximate rather than brittle and exact."
but if you ask me to explain.. i would be saying as below..

if someone is asked to write coding for controlling the fan switch.. probably the algorithm would be as
=>IF temperature IS HOT, switch ON the fan.. ELSE, switch OFF the fan..
this is crisp logic.. binary logic.. the term hot is considered as TRUE(1) and the rest considered as FALSE(0)..so when the sensor gives certain value nearer to hot and more than the median.. it will be considered as TRUE(1)..

But in the case of FUZZY LOGIC.. there are many values are given between the TRUE and FALSE..
if we are writing the same program in FUZZY LOGIC.. the coding would be..
=>IF temperature IS very cold THEN stop fan
=>IF temperature IS cold THEN turn down fan
=>IF temperature IS normal THEN maintain level
=>IF temperature IS hot THEN speed up fan
Thus the TRUE (1) and the FALSE(0) as many values between them.. fuzzy works on IF... THEN.. rather than IF.. ELSE..

In case of FUZZY LOGIC, we have ranges between the TRUE and FALSE..

if you ask for another example..
consider a 100ml glass with 30ml water in it.. and someone is asking, is that glass full?..


case i:  if you are saying that glass is empty since the water is less than half of the glass... then this is crisp(binary) logic...

case ii: if  you are saying that glass is 30% full and 70% empty.. then this is FUZZY LOGIC..

the control system designed using this logic is FUZZY CONTROL SYSTEM...

hope i have explained mean for FUZZY LOGIC.. if you have any clarification.. post me.. i will clear it..

BELIEVE IT OR NOT.,,

HI friend, 
From my early days, i have been hearing a story about great personalities.. today i googled it to know the full story... but i end up with something else that i would like to share with you...

BELIEVE IT OR NOT...

LONG LONG ago there was a farmer and his son lived in Scotland.. one day when the farmer was on his way to his farm, he heard a cry for help from nearby lake.. Our farmer went there and saw a boy struggling in the lake.. our farmer jumped and saved his life.. Then the boy went to his home and farmer went to his farm.. "THE END".. sorry sorry.. we need to have a twist in it.. so end is not in here..
Next day, a noble king arrived to that farmer's house to say thanks for saving his son's life.. and he offered him more money.. but our farmer didn't accept it... since it is not for the money, he save that boy's life.. it is a good humanity..

Then the king saw a little in that farmer's house.. and he asked "is this your son?"..
The farmer said "yes"..

then the king said.."I will make you a deal. let me take him and give him a good education. he will grow to a man you can be proud of"

And that he did. In time, Farmer's son graduated from St. Mary's Hospital Medical School in London.

Years afterward, the nobleman's son was stricken with pneumonia. What saved him? The medicine discovered by that farmer's son... "THE END"....

would you like me to give some name for those personalities in this story.. then, i will give the same name as people says to me...  

The name of the medicine is PENICILLIN... of course, the farmer's son is SIR ALEXANDER FLEMING...
the noble king is LORD RANDOLPH CHURCHILL.. and the name of the king's son is SIR WINSTON CHURCHILL..

MORAL:  "FICTION ALWAYS BE CHARMING"

CONCLUSION:

If you're thinking this story rings too good to be true, you are absolutely right. "Charming as it is," observes a Churchill Centre page devoted to alleged convergences between the lives of Winston churchill and Alexander Fleming, "it is certainly fiction."

Among the reasons set forth in support of that moral are:
  • There is no record of Winston Churchill nearly drowning in a Scottish bog when he was young.
  • There is no record of Lord Randolph Churchill paying for Alexander Fleming's education.
  • Though it is true that Winston Churchill contracted pneumonia more than once during World War II and was treated with an antibiotic called sulfadiazine ("M&B"), he was never, according to available medical records, treated with penicillin.
That said, Sir Alexander Fleming was indeed the discoverer of penicillin, and Churchill did apparently consult with the brilliant physician and professor of medicine once in 1946 when he had a staph infection that proved resistant to the drug.
The Churchill Centre attributes the apocryphal tale, which has circulated in email form since 1999, to a 1950 book called "Worship Programs for Juniors" by Alice A. Bays and Elizabeth Jones Oakbery.

Newer Posts Older Posts 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