Question #98763

write a program that displays your name on the screen the number of times the users says it to display

Expert's answer

#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




LATEST TUTORIALS
APPROVED BY CLIENTS