Enter your name (first name, family name) and a number then print that number of copies of
your name.
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);
}
Comments
Leave a comment