C#输出40以内的所有奇数程序代码
2024-10-18 00:06:10
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text; namespace ConsoleApplication6
{
class Program
{
static void Main(string[] args)
{
int s = 0, num = 80;
while (s < num)
{
s++;
if(s>40)
{
break;
}
if((s%2)==0)
{
continue;
}
Console.WriteLine( s );
}
Console.ReadLine();
}
}
}
最新文章
- Android studio下gradle Robolectric单元测试配置
- jsp遍历、循环
- tomcat 协议之并发协议 Http11NioProtocol
- ASP.NET MVC下判断用户登录和授权的方法
- C迷途指针
- CSS3 必须要知道的10 个顶级命令
- 基本配置6-被忽悠进了CentOS 6
- Backup App&#39;s data without rooting the phone
- GRE协议学习与练习
- Jmeter使用——参数化
- Java学习之equals和hashcode的关系
- js变量提升和函数提升
- Spring Boot修改启动端口
- Trees on the level(指针法和非指针法构造二叉树)
- admin 显示多对多字段
- 机器学习之隐马尔科夫模型HMM(六)
- 在IWMS中的分页效果
- 3ds max学习笔记(十二)-- (弯曲:实例旋转楼梯)
- Mysql 查询decimal 引号‘’增加精度
- Sublime Text安装与配置
热门文章
- MVC批量导出数据方法
- JSP控制select不可再选择
- js的 new image()用法[转]
- 我的第一个JApplet-绘制笑脸
- Echarts双轴图的配置.
- jquery 1.9里面已经删除了toggle(fn1, fn2)函数
- C++ 让控制台运行到最后按下回车键才结束的3种方法
- 23讲 URL
- [ES7] Descorator: evaluated &; call order
- ExecutorService与Executors例子的简单剖析(转)