write c++ program using loop to repeat word enter by user as number of its character?
write c++ program using loop to repeat word enter by user as number of its character?
#include <iostream>
#include <string>
using namespace std;
int i=0;
char word[100];
void main(){
cout<<"Enter a word: ";
cin>>word;
for (i=1;i<=strlen(word);i++) cout<<word<<"\n";
}