不同编程语言打印“元旦快乐!"

javascript:

        document.write("元旦快乐!"+"<br/>");

PHP:

<?php 
echo "元旦快乐!";
?>

PowerShell:

PS C:Userssx00x> '元旦快乐'
元旦快乐

C语言:

#include <stdio.h>
int main() {
    printf("元旦快乐!
");
    return 0;
}

C++:

#include <iostream>
using namespace std;
int main() {
    cout << "元旦快乐!"<<"
";
    return 0;
}
原文地址:https://www.cnblogs.com/sx00xs/p/6240736.html