Computer Science, asked by virajsingh11oct, 17 days ago

To print the odd numbers between 500 to 1000 in small basic? ​

Answers

Answered by samarthkrv
0

Answer:

class Odd {

   public static void main(String[] args) {

       for(int i = 500; i < 1000; i++){

           if(i % 2 == 1){

               System.out.println(i);

           }

       }

   }

}

Explanation:

Similar questions