Answer to Question #3337 in C++ for mukunda

Question #3337
Write a program to take any five characters from the key board using getch() function and display it using putch().
1
Expert's answer
2011-07-15T14:25:18-0400
#include <conio.h>

int main()
{
char input[5];
for (int i = 0; i < 5; ++i)
& input[i] = getch();
for (int i = 0; i < 5; ++i)
& putch(input[i]);

return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS