代码实现10项等差数列奇数项之和135偶数项之和150,怎么用java求出此等差数列!菜鸟求讲解 for ( int i = 0; i < 10; i++ ) { System.out.println("Nr." + (i+1) + " = " + (n+d*i));}