Political Science, asked by gourisankargirish, 10 months ago


3. Write a program in Java to generate all the alternate letters in the range of letters from
A to Z.

Answers

Answered by vishchopra36
22

public class characters

public static void main (string [ ]args

char c

for (c='A';c='Z';++c)

system.out.print (+" ");

Answered by BrainlyYoda
21

Answer:

public class Main {

   public static void main(String[] args) {  

       char c;

       for(c = 'A'; c <= 'Z'; c+=2)

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

   }

}

Output =>

A C E G I K M O Q S U W Y

This code is written in Java Programming Language. The code will print the alternate letters from A to Z.

Similar questions