#include <iostream>
using namespace std;
int main()
{
char a,u,l;
int x;
cout << "Please enter a number \n";
cin >> a;
x = atoi(&a);
cout << "The character " << a << " is converted to the integer " << x << "\n";
cout << "Please enter a character \n";
cin >> a;
u = toupper(a);
l = tolower(a);
cout << a << " in upper case is " << u << " in lower case is " << l;
return 0;
}
|