Criar pirâmide e padrão. Kotlin

Criar pirâmide e padrão. Kotlin



Programa para imprimir meia pirâmide usando *
Kotlin example code

Kotlin

  Output result
*
* *
* * *
* * * *
* * * * *
Programa para imprimir meia pirâmide a usando números
Kotlin example code

Kotlin

  Output result
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
Programa para imprimir meia pirâmide usando alfabetos
Kotlin example code

Kotlin

  Output result
A
B B
C C C
D D D D
E E E E E
Meia pirâmide invertida usando *
Kotlin example code

Kotlin

  Output result
* * * * *
* * * *
* * * 
* *
*
Meia pirâmide invertida usando números
Kotlin example code

Kotlin

  Output result
1 2 3 4 5
1 2 3 4 
1 2 3
1 2
1
Programa para imprimir pirâmide completa usando *
Kotlin example code

Kotlin

  Output result
*
      * * *
    * * * * *
  * * * * * * *
* * * * * * * * *
Programa para imprimir pirâmide usando números
Kotlin example code

Kotlin

  Output result
1
      2 3 2
    3 4 5 4 3
  4 5 6 7 6 5 4
5 6 7 8 9 8 7 6 5
Pirâmide completa invertida usando *
Kotlin example code

Kotlin

  Output result
* * * * * * * * *
  * * * * * * *
    * * * * *
      * * *
        *
Imprimir o triângulo de Pascal
Kotlin example code

Kotlin

  Output result
1
         1   1
       1   2   1
     1   3   3    1
   1   4   6   4   1
 1   5   10   10  5   1
Imprima o Triângulo de Floyd.
Kotlin example code

Kotlin

  Output result
1
2 3
4 5 6
7 8 9 10


.dll file is missing? Download for Windows 7, 8, 10 - Fix .dll file Missing Error on Windows | dll-box.com

BeeCoder.ORG

open source code and examples

We have been online since 2021 and 1 millions of people around the globe have visited our website since then

More visitors every month