Write C++ program to print ASCII value of all Uppercase Alphabet


techstudy.org

HP 15 Core i3 7th gen Laptop(4GB, 1TB HDD, Windows 10) | Rs. 31,490

Introduction

I have used CodeBlocks compiler for debugging purpose. But you can use any C++ programming language compiler as per your availability.


  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. char c;
  7.  
  8. // Printing ASCII value of all Uppercase Alphabet
  9. for(c = 'A'; c <= 'Z'; c++){
  10. cout << "ASCII value of: " << c << " = " << (int)c <<endl;
  11. }
  12. return 0;
  13. }

Result

C++ language techstudy.org

     





Related Topics




Popular Posts