Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Performing the magic using simple mathematical technique

NotificationsYou must be signed in to change notification settings

Suntrakanesh/Magical-Math

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

It can performe the magic using simple mathematical technique and I have included C graphics functions for better experiance. It usually ask the player to assume any three digit number and the last digit must be lesser than first digit. Then, we need to reverse the assumed number (Eg. if the assumed number is 541, then the reversed number is 145 ). Subsequently, we need to subtract the reversed number from assumed number. Then, it will prompt you to enter the last digit of the subtracted answer. Once you entered it, it will show the entire subtracted answer. It finds the answer without the operands as well as using single digit. That's the beauty in it. So that, it named as "Magical Math".

List of Graphic functions used in code

initgraph()

setbkcolor()

settextstyle()

getmaxx()

getmaxy()

outtextxy()

cleardevice()

itoa()

Final output screen

Magical math 2

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp