To Print the odd no. Posted on 11:24 by Unknown with No comments class Pro14 { public static void main(String arg[]) { int i,n; n=Integer.parseInt(arg[0]); for(i=1;i<=n;i++) { if(i%2!=0) { System.out.println(i); } } } } Email ThisBlogThis!Share to XShare to Facebook
0 comments:
Post a Comment