![](https://i-blog.csdnimg.cn/blog_migrate/6a3c8ff1a7a564e81db5e63af0dde945.png)
![](https://i-blog.csdnimg.cn/blog_migrate/b0077bf6059819b00889eb2591aff191.png)
![](https://i-blog.csdnimg.cn/blog_migrate/08f203a0fa59e09a4d9f87aa7ed80687.png)
#include <stdio.h>
int main(int argc, const char *argv[])
{
/*
//三杯水
int a =0;
int b =0;
int temp = 0;
printf("请输入a值,b的值 \n");
scanf("%d %d",&a,&b);
temp = a;
a = b;
b = temp;
a=a+b;
b=a-b;
a=a-b;
printf("a值%d,b的值%d\n",a,b);
*/
/*
//个位加十位加百位
int j = 0;
int k = 0;
int l = 0;
int num = 0;
printf("请输入一个三位数\n");
scanf("%d",&num);
j=num/100;
k=num/10%10;
l=num%10;
printf("%d\n",j+k+l);
*/
/*
//输入秒数,输出具体的时分秒
int hour = 0;
int min = 0;
int sec = 0;
int sum = 0;
printf("请输入秒数\n");
scanf("%d",&sum);
hour =sum/3600;
min = sum%3600/60;
sec = sum%3600%60;
printf("%d时%d分%d秒\n",hour,min,sec);
*/
/*
// 一个实数向上取整以及向下取整。
float num = 0;
int i = 0;
int j = 0;
printf("请输入一个实数\n");
scanf("%f",&num);
i = num/1;
j =num/1+1;
printf("向下取整%d\n向上取整%d\n",i,j);
*/
return 0;
}