1到100中9的个数
来源:互联网 发布:家居室内设计软件 编辑:程序博客网 时间:2024/04/30 15:09
#include<stdio.h>int main(){int a,b;int i; int count=0;for(i=1;i<=100;i++){a=i/10;//a表示十位数b=i%10;//b表示个位数if(a==9||b==9)count++;}printf("%d\n",count);return 0;}
0 0
- 1到100中9的个数
- 【C语言】1到100中9的个数
- 1到100之间9的个数:
- 求1到(10^N - 1)中9的个数
- 计算1到N(键入)中9的个数
- 1到n中1的个数
- 1到n中1的个数
- 1到n中1的个数
- 求1到100所有整数中出现9的个数
- 1到40亿中存在的1的个数
- 从1到n的数字中1的个数
- 统计1到n中1的出现个数
- 统计从1到n中1的个数
- 求1到n中1的个数
- 牛客网 求1到n 整数中1的个数
- 1到N中1出现的个数
- 从1到n整数中1出现的个数
- 计算0到N中包含数字1的个数
- UVA - 11384 Help is needed for Dexter ——递归
- [转]Ubuntu下QT的安装详细教程
- [leetcode 26] Remove Duplicates from Sorted Array
- dataGridView禁用排序和一些样式
- CentOS6.3搭建LAMP环境
- 1到100中9的个数
- Python字符串常见操作
- 探秘Java虚拟机 gc的监控
- 登陆功能要考虑哪些点
- 菜鸟成长记:一次失败的语言选择案例(由C/C++到python)
- ubuntu 开机不自动连接wifi问题
- 解决Ubuntun 12.04编译Mesa10.3 WARNING: 'aclocal-1.14' is missing on your system
- [leetcode 80] Remove Duplicates from Sorted Array II
- 而规范德国的风格和法国共和国