Basics of Nature
Descrition del contenete del págine
Conversion de old BASIC-programas a Nature por aprender lu elementari de ti-ci lingue.
Diamond
Original version in BASIC:
Example included in Vintage BASIC 1.0.3.
http:
This version in Nature:
Copyright (c) 2025, Marcos Cruz (programandala.net)
SPDX-License-Identifier: Fair
Written on 2025-12-21.
Last modified: 20251221T1724+0100.
*/
const LINES = 17
fn main() {
for int i = 1; i <= LINES / 2 + 1; i += 1 {
for int j = 1; j <= (LINES + 1) / 2 - i + 1; j += 1 {
print(" ")
}
for int j = 1; j <= i * 2 - 1; j += 1 {
print("*")
}
println()
}
for int i = 1; i <= LINES / 2; i += 1 {
for int j = 1; j <= i + 1; j += 1 {
print(" ")
}
for int j = 1; j <= ((LINES + 1) / 2 - i) * 2 - 1; j += 1 {
print("*")
}
println()
}
}
Págines relatet
- Basics off
- Metaprojecte pri li projectes «Basics of…».
- Basics of 8th
- Conversion de old BASIC-programas a 8th por aprender lu elementari de ti-ci lingue.
- Basics of Ada
- Conversion de old BASIC-programas a Ada por aprender lu elementari de ti-ci lingue.
- Basics of Arturo
- Conversion de old BASIC-programas a Arturo por aprender lu elementari de ti-ci lingue.
- Basics of C#
- Conversion de old BASIC-programas a C# por aprender lu elementari de ti-ci lingue.
- Basics of C3
- Conversion de old BASIC-programas a C3 por aprender lu elementari de ti-ci lingue.
- Basics of Chapel
- Conversion de old BASIC-programas a Chapel por aprender lu elementari de ti-ci lingue.
- Basics of Clojure
- Conversion de old BASIC-programas a Clojure por aprender lu elementari de ti-ci lingue.
- Basics of Crystal
- Conversion de old BASIC-programas a Crystal por aprender lu elementari de ti-ci lingue.
- Basics of D
- Conversion de old BASIC-programas a D por aprender lu elementari de ti-ci lingue.
- Basics of Elixir
- Conversion de old BASIC-programas a Elixir por aprender lu elementari de ti-ci lingue.
- Basics of F#
- Conversion de old BASIC-programas a F# por aprender lu elementari de ti-ci lingue.
- Basics of Factor
- Conversion de old BASIC-programas a Factor por aprender lu elementari de ti-ci lingue.
- Basics of FreeBASIC
- Conversion de old BASIC-programas a FreeBASIC por aprender lu elementari de ti-ci lingue.
- Basics of Gleam
- Conversion de old BASIC-programas a Gleam por aprender lu elementari de ti-ci lingue.
- Basics of Go
- Conversion de old BASIC-programas a Go por aprender lu elementari de ti-ci lingue.
- Basics of Hare
- Conversion de old BASIC-programas a Hare por aprender lu elementari de ti-ci lingue.
- Basics of Haxe
- Conversion de old BASIC-programas a Haxe por aprender lu elementari de ti-ci lingue.
- Basics of Icon
- Conversion de old BASIC-programas a Icon por aprender lu elementari de ti-ci lingue.
- Basics of Io
- Conversion de old BASIC-programas a Io por aprender lu elementari de ti-ci lingue.
- Basics of Janet
- Conversion de old BASIC-programas a Janet por aprender lu elementari de ti-ci lingue.
- Basics of Julia
- Conversion de old BASIC-programas a Julia por aprender lu elementari de ti-ci lingue.
- Basics of Kotlin
- Conversion de old BASIC-programas a Kotlin por aprender lu elementari de ti-ci lingue.
- Basics of Lobster
- Conversion de old BASIC-programas a Lobster por aprender lu elementari de ti-ci lingue.
- Basics of Lua
- Conversion de old BASIC-programas a Lua por aprender lu elementari de ti-ci lingue.
- Basics of Neat
- Conversion de old BASIC-programas a Neat por aprender lu elementari de ti-ci lingue.
- Basics of Neko
- Conversion de old BASIC-programas a Neko por aprender lu elementari de ti-ci lingue.
- Basics of Nelua
- Conversion de old BASIC-programas a Nelua por aprender lu elementari de ti-ci lingue.
- Basics of Nim
- Conversion de old BASIC-programas a Nim por aprender lu elementari de ti-ci lingue.
- Basics of Nit
- Conversion de old BASIC-programas a Nit por aprender lu elementari de ti-ci lingue.
- Basics of Oberon-07
- Conversion de old BASIC-programas a Oberon-07 por aprender lu elementari de ti-ci lingue.
- Basics of OCaml
- Conversion de old BASIC-programas a OCaml por aprender lu elementari de ti-ci lingue.
- Basics of Odin
- Conversion de old BASIC-programas a Odin por aprender lu elementari de ti-ci lingue.
- Basics of Pike
- Conversion de old BASIC-programas a Pike por aprender lu elementari de ti-ci lingue.
- Basics of Pony
- Conversion de old BASIC-programas a Pony por aprender lu elementari de ti-ci lingue.
- Basics of Python
- Conversion de old BASIC-programas a Python por aprender lu elementari de ti-ci lingue.
- Basics of Racket
- Conversion de old BASIC-programas a Racket por aprender lu elementari de ti-ci lingue.
- Basics of Raku
- Conversion de old BASIC-programas a Raku por aprender lu elementari de ti-ci lingue.
- Basics of Retro
- Conversion de old BASIC-programas a Retro por aprender lu elementari de ti-ci lingue.
- Basics of Rexx
- Conversion de old BASIC-programas a Rexx por aprender lu elementari de ti-ci lingue.
- Basics of Ring
- Conversion de old BASIC-programas a Ring por aprender lu elementari de ti-ci lingue.
- Basics of Rust
- Conversion de old BASIC-programas a Rust por aprender lu elementari de ti-ci lingue.
- Basics of Scala
- Conversion de old BASIC-programas a Scala por aprender lu elementari de ti-ci lingue.
- Basics of Scheme
- Conversion de old BASIC-programas a Scheme por aprender lu elementari de ti-ci lingue.
- Basics of Styx
- Conversion de old BASIC-programas a Styx por aprender lu elementari de ti-ci lingue.
- Basics of Swift
- Conversion de old BASIC-programas a Swift por aprender lu elementari de ti-ci lingue.
- Basics of V
- Conversion de old BASIC-programas a V por aprender lu elementari de ti-ci lingue.
- Basics of Vala
- Conversion de old BASIC-programas a Vala por aprender lu elementari de ti-ci lingue.
- Basics of Zig
- Conversion de old BASIC-programas a Zig por aprender lu elementari de ti-ci lingue.
Extern ligamentes relatet