#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
char again;
do
{
// Define the varibles
char letter = 0;
// Tell them to enter a lower case.
cout << "Enter an lowercase letter: ";
cin >>("%c", &letter);
// Check whether the input is lowercase and
// make sure it is between "a" and "z" then convert
//from lower case to upper case
if(letter >= 'a')
if (letter <= 'z')
{
letter = letter - 'a'+ 'A';
cout << "The uppercase: " << letter << endl;
}
// If it is not an upper case letter.
else
cout << "Enter a lowercase letter please.\n";
// Run it again
cout << "Would you like to run it again? [Y/N?] ";
cin >> again;
cin.ignore(1, '\n');
}while (again == 'Y' || again == 'y');
return 0;
}
It runs perfectly but I need it to have many characters, such as if I put a "kkdkda" when I debug it, it will read "K" not "KKDKDA" and thats what I need it to say. How do I get it to say KKDKDA in my script when it runs?