Thursday, 3 September 2015

JAVA PROGRAMMING

PROGRAM OF FOR LOOP 0 - 9



PUBLIC CLASS FOR LOOP{
PUBLIC STATIC VOID MAIN(STRING ARG[]){

           FOR   (INT I = 0; I<10; I++ ){
           SYSTEM.OUT.PRINTLN("VALUE OF I : "+ I");

        }

   }

}





OUTPUT:

VALUE OF I : 0
VALUE OF I : 1
VALUE OF I : 2
VALUE OF I : 3
VALUE OF I : 4
VALUE OF I : 5
VALUE OF I : 6
VALUE OF I : 7
VALUE OF I : 8
VALUE OF I : 9




NOTE: USE THE LOWERCASE

No comments:

Post a Comment