Write a complete C program to meet the following specificati

Write a complete C++ program to meet the following specifications: User enters the first name and last name (Please note not the full name) For example if the first name is Mary then it will be repeated four times If the last name is Jones then it will be repeated five times The full name will be repeated 8 time but the user will not enter the full name The input should like as shown below: Please enter your first name: Mary Please enter your last name: Jones The output will be Mary Mary Mary Mary Jones Jones Jones Jones Jones Mary Jones Mary Jones Mary Jones Mary Jones Mary Jones Mary Jones Mary Jones Mary Jones

Solution

#include<iostream.h>
#include<conio.h>

void main()
{
clrscr();
int i;

for(i=1;i<=4;++i)
cout<<“Your First Name”<<“n”;
getch();
}

{
clrscr();
int i;

for(i=1;i<=5;++i)
cout<<“Your Second Name”<<“n”;
getch();
}

{
clrscr();
int i;

for(i=1;i<=4;++i)
cout<<“Your Full Name”<<“n”;
getch();
}

 Write a complete C++ program to meet the following specifications: User enters the first name and last name (Please note not the full name) For example if the

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site