Write a program to Print z, Y, x, W, v… uptil 26 characters using a while loop.
Input Format
#
Constraints
#
Output Format
all CHARACTERS from z till a in given format
Also Read: Very Important
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static void main(String[] args) {
int i=122;
while(i>=97){
if(i%2==0){
System.out.print((char)i+" ");
}
else{
System.out.print((char)(i-32)+" ");
}
i--;
}
}
}