ASCII value of A-Z range from 65 to 90
// Program to print the ASCII value for A-Z characters
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
int x; // to store the ascii codes
char ch; // to store the characters
for (int i=65; i<=90; i++)
{
ch = i; // puts integer value into char
cout<<" Character "<<ch<<" ASCII Code "<<i;
cout<<endl;
}
cin.get();
return 0;
} // end of main
// Program to print the ASCII value for A-Z characters
#include <iostream>
#include <cstdlib>
using namespace std;
int main()
{
int x; // to store the ascii codes
char ch; // to store the characters
for (int i=65; i<=90; i++)
{
ch = i; // puts integer value into char
cout<<" Character "<<ch<<" ASCII Code "<<i;
cout<<endl;
}
cin.get();
return 0;
} // end of main
ASII values of A-Z |
thhhannnxxx d program is cent per cent correct
ReplyDeletey hv u used cin.get ? plz elaborate
ReplyDeletethank u
ReplyDelete