M

@MihaiPopa1

Ploting points in R

R
4 years ago
# Create a vector x <- c(10,20,40,60,80,100,120) # Plot the result plot(x)

Creating a list

R
4 years ago
# Create a list list1 <- list(c(4,6,8),c(6,1,3),2,16) # Print-out the list print(list1)

The first program in PHP

PHP
4 years ago
<?php echo "Hello, world!"; ?>

The fourth program in SQL

SQL
4 years ago
-- Create a table CREATE TABLE money ( id INTEGER PRIMARY KEY, name TEXT NOT NULL, money INTEGER ); -- Insert some values

Hello, world! example

Swift
4 years ago
// Swift Hello, world! example print("Hello, world!")

Program to read a varabile

Python
4 years ago
# Program to read a varabile print('Enter a varabile') read2 = input() print('The varabile is:',read2)

Program to read a number

Python
4 years ago
# Program to read a number read1 = int print('Enter a number') read1 = input() print('The number is:',read1)

Program to read a number

Fortran
4 years ago
! Program to read a number ! Fortan Programming PROGRAM READNUM WRITE(*, *)'Enter a number' READ(*, *)READ1 WRITE(*, *)'The number is:',READ1 END PROGRAM READNUM

Read a varabile

Bash
4 years ago
#!usr/bin/sh # Program to read a varabile in Bash read var echo "The varabile is:" $var

Hello, world! program

D
4 years ago
// Hello, world! program in pure D import std.stdio; void main() { writeln("Hello, world!"); }

Print "Hello, world!"

Fortran
4 years ago
! Print Hello, world! in Fortan ! Fortan Programming PROGRAM HELLO PRINT *, "Hello, world!" END PROGRAM HELLO

Print "Hello, world!"

C
4 years ago
// Print "Hello, world!" in C #include <stdio.h> int main() { printf("Hello world!"); return 0; }

Print "Hello, world!" on screen

Java
4 years ago
// Print "Hello, world!" on screen in Java class Main { public static void main(String[] args) { System.out.println("Hello, world!"); } }

Hello, world! in Lua

Lua
4 years ago
-- Hello, world! in pure Lua print("Hello, world!")

Hello, world! in Perl

Perl
4 years ago
# Hello, world! program in pure Perl print "Hello, world!\n";

Hello, world! program in Kotlin

Kotlin
4 years ago
// Hello, world! program in Kotlin fun main() { println("Hello, world!") }

Hello, world! program in Assembly

Assembly
4 years ago
;; Hello, world! program in Assembly section .data msg db "Hello, world!", 0ah section .text global _start _start: mov rax, 1

Hello, world in Bash

Bash
4 years ago
#!usr/bin/sh # Program to print "Hello, world!" on screen echo "Hello, world!" # prints "Hello, world!"

Hello, world! program in SQL

SQL
4 years ago
-- Create a table CREATE TABLE hello ( name TEXT NOT NULL); -- Insert vaules INSERT INTO hello VALUES ("Hello, world!"); -- Select some values SELECT * FROM hello WHERE name = 'Hello, world!';

Hello, world! program in R

R
4 years ago
# Hello, world! program in R print("Hello, world!")