if语句
#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
int main()
{
int input = 0;
printf("Will u study C?(1/0) : ");
scanf("%d", &input);
if (input == 1)
printf("good offer\n");
else
printf("get off\n");
return 0;
}

©著作权归作者所有:来自51CTO博客作者Dc.Lan的原创作品,如需转载,请注明出处,否则将追究法律责任

更多相关文章

  1. Python 为什么不支持 switch 语句?
  2. Python 为什么要有 pass 语句?
  3. Python 为什么只需一条语句“a,b=b,a”,就能直接交换两个变量?
  4. 不使用 if-elif 语句,如何优雅地判断某个数字所属的等级?
  5. SQL select语句笔记
  6. Ansible 之 when判断语句使用
  7. PHP语法:goto 语句
  8. 在 PHP 中格式化并高亮 SQL 语句

随机推荐

  1. Android ImageView和TextView居中
  2. Android NDK开发学习
  3. Android simpleperf
  4. android相对布局实例—登录界面
  5. android实现文件下载的几种方式
  6. android Q
  7. android.os.storage Kotlin |Java
  8. (转)Android Contacts(一)—— 读取联系人
  9. android蓝牙通信
  10. ubuntu 安装配置 JDK7和Android(安卓)Stu