Contact Learn C
Copy Program Share Program

Program 3:To print Alphabets from A-Z

Program 3:To print Alphabets from A-Z
 int i;
  1. Here we declared an integer i.
  2. Now this program is same as printing numbers from 65 to 90.
  3. But if you can remember the "ASCII" values of 65 which resembles 'A' and 90 which resembles 'Z' as in ascii sheet. To refer ASCII Values click here.
  4. So instead of "%d" if we use "%c" it is converted to ascii value.

print Alphabets from A-Z

No comments:

Post a Comment

Download App and Learn when ever you want

Get it on PlayStore
Get it on Amazon App Store
Get it on Aptoide