Spartan programming main objective is minimal use of various elements of the programming language which may contribute to complexity. This programming style relies on strict self-discipline, avoiding some of the opportunities offered by the underlying language, geared at achieving the programming equivalent of laconic speech.

Spartan programming strives for simultaneous minimization of all of the following measures of code complexity:

- Horizontal complexity, that is, the depth of nesting of control structures, just as the total line length.
- Vertical complexity, that is, module length in lines.
- Token count
- Character count
- Parameters, that is the number of parameters to a routine or a generic structure.
- Variables
- Loops, that is the number of iterative instructions and their nesting level.
- Conditionals, that is the number of
ifand multiple branchswitchstatements.

1 Kilometer = 1000 Meters

1/2 a Kilometer = 500 Meters

1 Meter = 100 Centimeters

1 Centimeter = 10 MillimetersWater boils at 100 degrees celsius

and freezes at 0 degrees celsius.1 Ton = 1000 Kilograms

1 Kilogram = 1000 Grams

1/2 a Kilogram = 500 GramsYou get the point. Now, let’s check…