Write a program that will ask the user to enter a string. You need to display the string in such a way that each word is displayed on a separate line. Test Case 1 Input (stdin) university Expected Output u n i v e r s i t y Test Case 2 Input (stdin) mango Expected Output m a n g o
#include <iostream>
#include<string.h>
using namespace std;
int main()
{
char s[50];
int i;
cin>>s;
for(i=0;i<strlen(s);i++)
cout<<s[i]<<"\n";
return 0;
}