首页 > 编程语言 > 详细

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

时间:2017-01-01 10:04:38      阅读:207      评论:0      收藏:0      [点我收藏+]

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;
}

 

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

原文:http://www.cnblogs.com/sx00xs/p/6240736.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!