String concatenations

Description:

Write a program to concatenate two strings. Test Case 1 Input (stdin) ab b b Expected Output ab b b abbb Test Case 2 Input (stdin) aa yy uu Expected Output aa yy uu aayyuu

Program :

#include <iostream>

using namespace std;

int main()

{

char a[10],b[10],c[10];

  cin>>a>>b>>c;

  cout<<a<<"\n";

  cout<<b<<"\n";

  cout<<c<<"\n";

  cout<<a<<b<<c;

return 0;

}