hello_world!【1】
2016-05-26 21:57
281 查看
hello_world!【1】
编写一个程序,输入一个整数,然后输出这个整数并打印Hello World样例输入输出:
Please input a number: 12
Hello World 12
代码实现:
#include <stdlib.h> #include <stdio.h> int main() { int number; printf("\nPlease input a number: "); scanf("%d", &number); printf("Hello World: %d", number); return 0; }
相关文章推荐
- UML边看边记 之 类(一)
- MFC 删除提示框
- Hive的执行生命周期
- C++中vector的使用
- C++中vector的使用
- 阿里云centos和本地windows实现git代码管理(github仓储)
- 如何修改MFC中的系统菜单的图标?
- C++快速入门-标准输入输出
- 基于ant对scala工程进行编译 发布jar包
- 2.x的版本hive的api调用增加,删除,添加数据
- 使用ZXing实现二维码的扫描和生成带logo的二维码
- 判断元素是否含有某个Class值(正则法)移除、添加class
- 万能适配器的使用
- 字符串反转C#的实现
- System.in,System.out、转换流InputStreamReader,OutputStreamWriter、流操作基本规律
- java判断对象类型
- 报错"std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::at(unsigne
- 编译安装 Centos 7 x64 + tengine.2.0.3 (实测+笔记)
- 剑指Offer之链表中倒数第k个节点(题15)
- codevs 3336 电话网络