You are viewing a single comment's thread. Return to all comments →
import java.util.; import java.math.; class sos { public static void main(String args[]) { Scanner sc=new Scanner (System.in); int i,n,a,j,b,k=0,l,s1; l=sc.nextInt(); for(int m=0;m=1&&n<=15) { for(i=0;i=0) s=s+a; k++; //if(k%10!=0) s1=(int)s; System.out.print(s1+" "); //else //{ //System.out.println();
//} s=0; }} System.out.println(); } }
}
Seems like cookies are disabled on this browser, please enable them to open this website
Java Loops II
You are viewing a single comment's thread. Return to all comments →
import java.util.; import java.math.; class sos { public static void main(String args[]) { Scanner sc=new Scanner (System.in); int i,n,a,j,b,k=0,l,s1; l=sc.nextInt(); for(int m=0;m=1&&n<=15) { for(i=0;i=0) s=s+a; k++; //if(k%10!=0) s1=(int)s; System.out.print(s1+" "); //else //{ //System.out.println();
}