Goodbye2021
Hello2022
--Ada
with Ada.Text_IO; use Ada.Text_IO;
procedure Hello is
begin
Put_Line ("Goodbye,2021! Hello,2022!");
end Hello;
#Bash
echo "Goodbye,2021! Hello,2022!";
// c#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace programming {
public class Program {
public static void Main(string[] args) {
Console.WriteLine("Goodbye,2021! Hello,2022!");
}
}
}
// c
# include <stdio.h>
# include <stdlib.h>
int main(int argc, char* argc[]) {
printf("Goodbye,2021! Hello,2022!");
system("pause");
}
// c++
#include <bits/stdc++.h>
signed main() {
std::cout << "Goodbye,2021! Hello,2022!" << std::endl;
return 0;
}
<!--Client Side-->
<!DOCTYPE html>
<html>
<head>
<title>Hello, world!</title>
<meta charset="utf-8" />
<style type = "text/css" >
body { font - family: Arial; }
pre { font - family: "Consolas",monospace; font - size: 14px; white - space: pre - wrap; word - wrap: break-word; width: 99 %; color: gray; }
</style>
<script language="javascript" type="text/javascript" src="https://code.jquery.com/jquery-latest.min.js"></script>
<script type = "text/javascript">
$(document).ready(function() {
printSentence("result", "Goodbye,2021! Hello,2022!");
});
function printSentence(id, sentence) {
for (var i = 0; i < sentence.length; i++)
{
(function(index) {
setTimeout(function() {
document.getElementById(id).innerHTML += sentence[index];
}, 50 * i);
})(i);
}
}
</script>
</head>
<body>
<pre id = "result" ></pre>
</body>
</html>
;; Clojure
(println "Goodbye,2021! Hello,2022!")
;Common Lisp
(print "Goodbye,2021! Hello,2022!")
// D
import std.stdio;
void main() {
writeln("Goodbye,2021! Hello,2022!");
}
#Exlir
IO.puts "Goodbye,2021! Hello,2022!";
%Erlang
-module(source).
-export([entry_point/0]).
entry_point() ->
io:fwrite("Goodbye,2021! Hello,2022!").
//F#
open System
printfn "Goodbye,2021! Hello,2022!"
!Fortan
program main
print *, "Goodbye,2021! Hello,2022!"
end program main
// go
package main
import "fmt"
func main() {
fmt.Printf("Goodbye,2021! Hello,2022!")
}
--Haskell
main = print $ "Goodbye,2021! Hello,2022!"
// Java
import java.util.*;
import java.lang.*;
class dear {
public static void main(String args[]) {
System.out.println("Goodbye,2021! Hello,2022!");
}
}
// Javascript
print("Goodbye,2021! Hello,2022!")
// Kotlin
func main(args: Array<String>) {
println("Goodbye,2021! Hello,2022!")
}
--lua
print ("Goodbye,2021! Hello,2022!")
#MySql
select version() as "Goodbye,2021! Hello,2022!"
//Node.js
console.log("Goodbye,2021! Hello,2022!");
(*Ocaml*)
print_string "Goodbye,2021! Hello,2022!";;
%Octave
x=2:0.10:2
plot(x, sin(x))
print -dpng some_name.png
//Objective-C
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[]) {
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSLog (@"Goodbye,2021! Hello,2022!");
[pool drain];
return 0;
}
--Oracle
select banner as "Goodbye,2021! Hello,2022!" from v$version
// pascal
program Hello
begin
writeln("Goodbye,2021! Hello,2022!");
end
#Perl
print "Goodbye,2021! Hello,2022!";
// php
<?php
echo "Goodbye,2021! Hello,2022!"
?>
--PostgraSQL
select version() as 'Goodbye,2021! Hello,2022!'
Prolog
#Python
print("Goodbye,2021! Hello,2022!")
#R
print("Goodbye,2021! Hello,2022!")
//Rust
fn main() {
println!("Goodbye,2021! Hello,2022!");
}
#Ruby
puts "Goodbye,2021! Hello,2022!"
//Scala
object programming extends App {
println("Goodbye,2021! Hello,2022!")
}
;Scheme
(display "Goodbye,2021! Hello,2022!")
--Sql Server
select @@version as 'Goodbye,2021! Hello,2022!'
//Swift
print("Goodbye,2021! Hello,2022!")
#Tcl
puts "Goodbye,2021! Hello,2022!"
'Visual Basic
Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text.RegularExpressions
Namespace Programming
Public Module Program
Public Sub Main(args() As string)
'Your code goes here
Console.WriteLine("Goodbye,2021! Hello,2022!")
End Sub
End Module
End Namespace
Happy new year!