Write a Program using while loop for printing z w t q n k h e alphabets using a while loop, where the last alphabet printed should be greater than or equal to d.
Input Format
No Input
Constraints
Not Applicable
Output Format
As Described in Problem Statement
Sample Output 0
z w t q n k h e
Also Read: Write a program to print Big ladder
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>=99){
char ch=(char)i;
System.out.print((char)ch+" ");
i-=3;
}
}
}