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

javascript:

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

PHP:

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

PowerShell:

PS C:\Users\sx00x> '元旦快乐'
元旦快乐

C语言:

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

C++:

#include <iostream>
using namespace std;
int main() {
    cout << "元旦快乐!"<<"\n";
    return 0;
}

 

posted @ 2017-01-01 09:58  sx00xs  阅读(628)  评论(0编辑  收藏  举报