# include <iostream>
#include <conio.h>
#include <fstream>
using namespace std;
int main()
{
char p[80];
cout << "Enter text :";
cin >> p;
cout << "the ented text is:"<< p << endl;
return 0;
}
its the same code you have used.
watever u did is getting a input in variable p.
If u want tat in the console, just print the same variable thats it!
Thanks!
Arun P.