Note: (Restricted functionality due to obvious reasons!)
Minimal Code ( Raw-View ) :
#include<iostream.h>
#include<conio.h>
void main()
{
char a,b,c;
int i,m,n,j,k,x,y;
char nm1[50], nm2[50];
cout<<"Enter the lenght of first name : ";
cin>>x;
cout<<"Enter first name : ";
for(i=1; i<=x; i++)
{
cin>>nm1[i];
}
cout<<"Enter the length of second name : ";
cin>>y;
cout<<"Enter second name : ";
for(j=1; j<=y; j++)
{
cin>>nm2[j];
}
for(i=1; i<=x; i++)
{
cout<<nm1[i];
}
cout<<" and ";
for(i=1; i<=y; i++)
{
cout<<nm2[i];
}
if(x%2==0){if(y%2==0){cout<<" are Good friends !!:";}else {cout<<" are Not so good friends !!";}}
else
if(x%2!=0){if(y%2!=0){cout<<" are Good friends !!:";}else {cout<<" are Not so good friends !!";}}
}