How to resolve the algorithm Hello world/Text step by step in the J programming language

Published on 12 May 2024 09:40 PM
#J

How to resolve the algorithm Hello world/Text step by step in the J programming language

Table of Contents

Problem Statement

Display the string Hello world! on a text console.

Let's start with the solution:

Step by Step solution about How to resolve the algorithm Hello world/Text step by step in the J programming language

Source code in the j programming language

   'Hello world!'
Hello world!

   [data=. 'Hello world!'
Hello world!
   data
Hello world!
   smoutput data
Hello world!

   NB. unassigned names are verbs of infinite rank awaiting definition.
   NB. j pretty prints the train.
   Hello World!
Hello World !


   NB. j is glorious, and you should know this!

   i. 2 3   NB. an array of integers
0 1 2
3 4 5

   verb_with_infinite_rank =: 'Hello world!'"_

   verb_with_infinite_rank i. 2 3
Hello world!
   

   verb_with_atomic_rank =: 'Hello world!'"0

   verb_with_atomic_rank i. 2 3
Hello world!
Hello world!
Hello world!

Hello world!
Hello world!
Hello world!

  

You may also check:How to resolve the algorithm Append a record to the end of a text file step by step in the Julia programming language
You may also check:How to resolve the algorithm Metronome step by step in the C programming language
You may also check:How to resolve the algorithm Greatest element of a list step by step in the ZX Spectrum Basic programming language
You may also check:How to resolve the algorithm Case-sensitivity of identifiers step by step in the Objeck programming language
You may also check:How to resolve the algorithm Keyboard input/Obtain a Y or N response step by step in the VB-DOS programming language