22
来源:互联网 发布:c4d r18 for mac下载 编辑:程序博客网 时间:2024/05/22 07:48
#include<stdio.h>
int main()
{
int a,b=0;
for(a=1;a<1000;a++)
{
if(a%3==0)
{
if(a%10==5||(a/10)%10==5||a%100==5)
{
printf("%d ",a);
b++;
if(b%3==0)
printf("\n");
}
}
}
return 0;
}
int main()
{
int a,b=0;
for(a=1;a<1000;a++)
{
if(a%3==0)
{
if(a%10==5||(a/10)%10==5||a%100==5)
{
printf("%d ",a);
b++;
if(b%3==0)
printf("\n");
}
}
}
return 0;
}
0 0
- 22
- 22
- 22
- 22
- 22
- 22
- 22
- 22
- 22
- 22
- 22
- 22
- 22
- 22
- 22
- 22
- 22
- 22
- 哈希表的C++实现
- 第一章第五题
- LeetCode 62/63/120/64 Unique PathsI/II Triangle/Min sum Path/Rectangle Area--DP
- Android开发规范
- xpath学习
- 22
- C++中各种类型的成员变量的初始化方法(mark-好)
- Android如何通过shared_user_id获取系统权限
- leetcode-111 Minimum Depth of Binary Tree
- teste
- storm安装配置
- Grand Central Dispatch(GCD)编程基础
- 第五周 项目三-多文件组织多个类
- Java实现Immutable Class(不可变类)要点