Advertisement
rorschack

c++ prac prog - 16

Aug 16th, 2015
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream.h>
  2. #include <conio.h>
  3.  
  4. void main()
  5. {
  6.     clrscr();
  7.     cout << "Printing ASCII values from 65 to 122.\n" << endl;
  8.     unsigned short int i(65);
  9.     for (; i<=122; i++)
  10.         cout << "ASCII value for " << i << " is " << char(i) << endl;
  11.     getch();
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement