print a to z using while loop in javascript code example
Example 1: java program to display characters from a to z using loop
public class Characters {
public static void main(String[] args) {
char c;
for(c = 'A'; c <= 'Z'; ++c)
System.out.print(c + " ");
}
}
Example 2: Create a program that displays the letters A to Z.
#include <stdio.h>
int main() {
char c;
for (c = 'A'; c <= 'Z'; ++c)
printf("%c ", c);
return 0;
}