public class Main {
public static void main(String[] args) {
int limit = 50;
/*来自
时代Java - N o w J a v a . c o m*/
System.out.println("Printing Odd numbers between 1 and " + limit);
for(int i=1; i <= limit; i++){
//if the number is not divisible by 2 then it is odd
if( i % 2 != 0){
/**代码未完, 请加载全部代码(NowJava.com).**/
本文系作者在时代Java发表,未经许可,不得转载。如有侵权,请联系nowjava@qq.com删除。