Answer to Question #98763 in C++ for bilal

Question #98763
write a program that displays your name on the screen the number of times the users says it to display
1
Expert's answer
2019-11-15T11:00:20-0500
#include "iostream"
#include "string"
using namespace std;


int main()
{
	string name;
	cout << "Enter your name: ";
	cin >> name;
	int count;
	cout << "Enter a count for chycle: ";
	cin >> count;
	for (int i = 0; i < count; i++) cout << name << endl;
	system("pause");
	return 0;
}

If you need something else, let me know




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