Monday, 5 September 2011

Loop Demo - to print 1 to 10 on screen in c++

public class LoopDemo {
    public static void main(String[] args) {
        int i;
        for(i=1;i<=10;i++){
            System.out.println(i);
        }
    }
}

No comments:

Post a Comment

Note: only a member of this blog may post a comment.