C语言测试int型数据的最大值最小值
2024-09-06 12:52:54
#include<stdio.h>
int int_min()
{
int i=0;
int j=0;
while(i>=j)
{
i=j;
j--;
}
printf("%d\n",i);
return 0;
}
int int_max()
{
int i=0;
int j=0;
while(i<=j)
{
i=j;
j++;
}
printf("%d\n",i);
return 0;
}
int main()
{
int_max();
int_min();
return 0;
}
最新文章
- PHP设计模式(四)单例模式(Singleton For PHP)
- ASP.Net请求处理机制初步探索之旅 - Part 3 管道
- js ShowDialogModal 关闭子页面并刷新父页面,保留查询条件
- 折腾一天的WordPress
- 夺命雷公狗---在js里阻止a标签的跳转和form表单的跳转
- 索引服务混战ASP.NET――微软的又一个隔离墩
- 前端必杀技之Javascript 第1天
- iOS推送证书p12转成pem
- ubuntu 使用第一天
- 我和 flow.ci 的第一次亲密接触
- mitmproxy,mitmdump
- npm 镜像源替换为淘宝镜像
- C#List源码
- [转帖]CR3,PDE,PTE,TLB 内存管理的简单说明
- 【Code Chef】April Challenge 2019
- java之定时任务
- PHP中的插件机制原理和实例
- 使用终端执行.app程序 for mac
- Spring面试,IoC和AOP的理解, @Transactional原理及使用
- Asp.Net使用加密cookie代替session验证用户登录状态 源码分享