Answer to Question #284707 in C++ for papi

Question #284707

Enter your name (first name, family name) and a number then print that number of copies of

your name.


1
Expert's answer
2022-01-09T03:08:55-0500
using namespace std;
/*
	Enter your name (first name, family name) and a number then print that number of copies of your name.
*/


int main()
{
	string FirstName,FamilyName;
	int No_of_Copies,n;
	
	cout<<"\n\tEnter you First  Name: "; cin>>FirstName;
	cout<<"\n\tEnter you Family Name: "; cin>>FamilyName;
	cout<<"\n\tEnter No. of Copies  : "; cin>>No_of_Copies;
	for(n=0;n<No_of_Copies;n++) cout<<"\n\t"<<FirstName<<" "<<FamilyName;
	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