'For loop' practice code in java Q: What is the 'for loop' in computer programming ? A: A 'for loop' means to execute a block of code for a limited amount of time. Write a Java program to count down 10 times and print HAPPY ONAM on the screen? program package javaproject1; public class ForloopDemo { public static void main(String args []) { for ( int i =10; i >=0; i --){ System. out .println( i ); } System. out .println( "HAPPY ONAM" ); } } Eclipse output
بسم الله الرحمن الرحيم
This free site provides basic Java theory notes and simple programs for beginners. It is the best way to learn Java programming for free. best way to learn Java programming for free, best Java notes for beginners, and simple Java programs for practice for beginners.