Computer Science, asked by pratyush191, 2 months ago

java program to print even no. between 1 to 100 using while loop​

Answers

Answered by profdambaldor
0

Answer:

import java.util.Scanner;  

public class Display

{  

public static void main(String[] args)    

{  

int n =100, i;  

i=1;    

while(i<=n)  

{    

System.out.print(i +" ");    

i=i+1;  

}      

}  

}  

Explanation:

Similar questions