Language Java Write a complete program that prints the first
Language: Java
Write a complete program that prints the first 40 multiples of 4 (i.e. 4, 8, 12, … 160).
Solution
this solution involves in looping ,here i have impleament it with while loop
import java.lang.Math; // headers MUST be above the first class
// one class needs to have a main() method
 public class Multiplesof4
 {
 // arguments are passed using the text field below this editor
 public static void main(String[] args)
 {
int limit = 40;
 int start = 1;
 
 while (start<=40)
 {
 int value = start*limit;
   
 System.out.println(value);
 
 start++;
 }
   
   
 }
 }

