Adobe Spectrum Hugo Demo Documentation FAQ Technology Radar Tags
 

Programming

Kotlin, Java

Kotlin exampleJava example

fun main(args: Array<String>) {

    val first = 1.5f
    val second = 2.0f

    val product = first * second

    println("The product is: $product")
}

public class MultiplyTwoNumbers {

    public static void main(String[] args) {

        float first = 1.5f;
        float second = 2.0f;

        float product = first * second;

        System.out.println("The product is: " + product);
    }
}

Go, Python

Go examplePython example

func main() {
    fmt.Println("hello world")
}

print('Hello, world!')

C, C#, C++

CC#C++

#include <stdio.h>
int main()
{
   printf("Hello World");
   return 0;
}

static void Main(string[] args) 
{
  Console.WriteLine("Hello, world!");
}

 
int main()
{
  std::cout << "Hello World!" << std::endl;
  return 0;
}