66 896
Assignments Done
99,1%
Successfully Done
In October 2018

Answer to Question #3336 in C++ for mukunda

Question #3336
Write a program to take your name as input from the user through console and display it on screen? Note use scanf() function
Expert's answer
#include <cstdio>

int main()
{
char name[100];
printf ("Please input your name:\n");
scanf ("%100s", name);
printf ("Your name is %s\n", name);

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