用java语言实现等差数列public class dc{ int a,d,n; dc(int x,int y,int z){ a=x; d=y; n=z; } public int getSum(){ int z=0; for(int i=0;i