64 638
Assignments Done
99,2%
Successfully Done
In September 2018

Answer to Question #3338 in C++ for mukunda

Question #3338
Write a program to take a string as input from the key board using gets() function display it on the screen.
Expert's answer
#include <cstdio>

int main()
{
char string[100];
printf ("Please input a string:\n");
gets (string);
printf ("You string is %s\n", string);

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 first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions