|RTL referenceGlossaryTips/Tricks|FREE App/VCL|Best'O'Net|Books|Link To|
|Delphi Code Puzzle: Square and a square root of a number|
|Problem: Let the user type a value for a real variable ANumber. If ANumer is greater than 0, the program should output the square root of ANumber; if ANumer is less or equal to 0, the program should output the square of ANumber.|
Delphi Code Puzzle: 004
Have you solved this puzzle? Try out more Delphi Programming Code Puzzles!
Puzzle Solving Description
When you reach to the end - by solving this Delphi Pascal code puzzle, you'll have the option to see whether your code can be compiled in Delphi, or not.
If the code is correct and, therefore, can be compiled, BRAVO, you've solved the puzzle.
Try the Puzzle