galinyotsev123

ProgBasicsJavaBook5.1Loops03latinLetters

Jan 15th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class E03latinLetters {
  4. public static void main(String[] args) {
  5. Scanner scanner = new Scanner(System.in);
  6.  
  7. System.out.println("Latin alphabet: ");
  8. for (char letter = 'a'; letter <= 'z'; letter++) {
  9. System.out.print(" " + letter);
  10. }
  11. System.out.println();
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment