Rombo moteado X16966


Statement
 

pdf   zip

html

Diseña una función motted_rhombus(n) que reciba un número entero n>2 y escriba un rombo de lado n moteado.

El enunciado pide una función que escriba algo, así que en en este problema se usará print en vez de return.

Sample session
>>> motted_rhombus(4)
   *
  * *
 * * *
* * * *
 * * *
  * *
   *
>>> motted_rhombus(7)
      *
     * *
    * * *
   * * * *
  * * * * *
 * * * * * *
* * * * * * *
 * * * * * *
  * * * * *
   * * * *
    * * *
     * *
      *
Information
Author
InfBesos
Language
Spanish
Translator
Original language
Catalan
Other languages
Catalan English
Official solutions
Python
User solutions
Python