# include <stdio.h>
int main()
{
char ch;
printf("输入一个字符:\n");
scanf("%c",&ch);
if(ch>='a'&&ch<='z')
ch=ch-'a'+'A';
printf("%c\n",ch);
return ;
}

#include <stdio.h>
int main() {
int days;
printf("输入一个整数: \n");
scanf("%d",&days); if(days>=&&days<=)
printf("workdays, fighting\n");
else if(days==||days==)
printf("weekend, relax~\n");
else
printf("Ooops, not in 1~7\n");
return ;
}

//关系运算和逻辑运算
# include<stdio.h>
int main()
{
int a=,b=,c=;
printf("%d,%d,%d,%d\n",a==b&&a==c,a!=b&&a!=c,a>=b&&a>=c,a<=b&&a<=c);
printf("%d,%d\n",a<=b||a>=c,a==b||b==c);
printf("%d,%d,%d,%d\n",!(a==b),!(a>=b),!(a>=c),!(a<=b));
return ;
}

/*Thhis is first C program*/
# include<stdio.h>
int main()
{
printf("headbchsajhcuiknlxkns");
return ;
}

/*求两个整数的乘积*/
# include<stdio.h>
int product(int,int);
int main(void)
{
int x,y,s;
scanf("%d %d",&x,&y);
s=product(x,y);
printf("The mul is:%d",s);
return ;
}
int product(int a,int b)
{
int mul;
mul=a*b;
return mul;
}

# include <stdio.h>
int main()
{
int x;
printf("输入一个整数: \n");
scanf("%d",&x); if(x%==)
printf("是奇数");
else
printf("是偶数");
return ;
}

/*整数相除*/
# include<stdio.h>
int main()
{
int a=,b=,c=,d,e,f;
d=a/b*c;
e=a*c/b;
f=c/b*a;
printf("d=%d,e=%d,f=%d\n",d,e,f);
return ;
}

/*自加、自减运算*/
# include<stdio.h>
int main()
{
int a=,b=;
printf("a++=%d\n",a++);
printf("a=%d\n",a);
printf("++b=%d\n",++b);
printf("b=%d\n",b);
return ;
}

最新文章

  1. Python学习总结14:时间模块datetime &amp; time &amp; calendar (一)
  2. 一个js搜索功能的实现
  3. VI经典插件ctags
  4. Giew与checkBox的结合
  5. c# 远程回收IIS应用池
  6. Delphi XE6调用javascript
  7. 如何收集 EBS 各种相关业务的表的数据
  8. [Node.js] 2、利用node-git-server快速搭建git服务器
  9. 腾讯云申请SSL证书与Nginx配置Https
  10. 记一次Dynamic Batching不生效的爬坑实例分析[Unity]
  11. [redis] &lt;&lt;The little Redis book&gt;&gt;的读书笔记
  12. node中中间件body-parser的实现方式
  13. HMM与分词、词性标注、命名实体识别
  14. Masonry插件:内容始终水平居中
  15. RNN - LSTM - GRU
  16. Dijkstra Java
  17. RN_ 错误整理
  18. 【Raspberry Pi】crontab 定时任务
  19. 【转】一看你就懂,超详细java中的ClassLoader详解
  20. pip镜像源

热门文章

  1. mysql授权单个表权限
  2. hdu 2353 n皇后问题
  3. oracle 的分页、截断查询
  4. git一些简单运用
  5. vue使用阿里矢量图标
  6. webstorm编写react native,代码修改后,重新编译运行没有变化的问题
  7. springboot学习入门简易版三---springboot2.0启动方式
  8. DNS服务——搭建企业内网DNS服务器的作用
  9. Python_continue_break语句
  10. IntelliJ IDEA lombok插件的安装和使用