IT人的新年快乐

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!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值