#include <iostream>
#include <cctype>
/* Write a program that prompts the user to input a string and outputs
the string in uppercase letters. (Use a character array to store the string) Use only dynamic arrays.*/
usingnamespace std;
int main()
{
int xxx;
char *name;
name = newchar [20];
cout<<"Enter a name: "<<endl;
cin.get(name,20);
for(int i = 0; i < 20; i++)
cout<<static_cast<char>(toupper(name[i]));
cout<<endl;
cin>>xxx; //read output
return 0;
}