Python  1.0
Functions
_08b_xis Namespace Reference

Formatting prints. More...

Functions

def xis (n)
 Prints an X using asterisks. More...
 
def main ()
 

Detailed Description

Formatting prints.

Author
Paulo Roma
Since
16/06/2009

Function Documentation

◆ main()

def _08b_xis.main ( )

References _01d_dec2bin.input, and xis().

◆ xis()

def _08b_xis.xis (   n)

Prints an X using asterisks.

The X is parameterized by n, which indicates the number of lines: lines = 2n+1
For n = 2 (5 lines):

* *
* *
*
* *
* *
Parameters
norder of the X: lines = 2n+1.
Returns
string for printing the X.

Referenced by main().