Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package myfirst;
- public class targil3 {
- public static void main(String[] args) {
- int num = 'Z' - 'A' + 1;
- System.out.println("There are " + num + " letters in the alphabet");//result
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement