The blog consist sources of object oriented languages.Such as concepts of c++,java,C# .Blog enhances your programming skills from your first step to a known developer.
Search This Blog
Sunday, 13 October 2013
Print Numbers By for loop
import java.util.*; class forloop { public static void main(String args[]) { Scanner in=new Scanner(System.in); int n; System.out.println("Enter the value:"); n=in.nextInt(); System.out.println(); for(int i=0;i<n;i++) { System.out.print(i); } } }
No comments:
Post a Comment