Given as input two strings word and a separator and an integ
Solution
#include <iostream>
 #include <string>
 #include<conio.h>
 using namespace std;
 int main(){
    cout<<\"Enter a word, a separator and a count:\";
    string word,sep;
    int count,i;
    cin>>word >> sep>> count;
    string result=\"not complete\";
    if(sep==\"X\"){
        for (i= 0; i<count; i++){
                //repeating this count times
                cout <<word<<sep;
    }
    }else if(sep==\"And\" && count==2){
 for (i= 0; i<count-1; i++){
                //repeating this count times
                cout <<word<<sep<<word;
    }
   }else if(sep==\"And\" && count==1){
 for (i= 0; i<count; i++){
                //repeating this count times
                cout <<word;
    }
    }
   
   
    cout<<endl;// make sure on last line
    cout<<\"After processing: [\\\"\" <<\"\\\"]\"<<endl;
    getch();
   
 }

