60 578
Assignments Done
97,9%
Successfully Done
In April 2018

Answer to Question #7029 in C++ for muna

Question #7029
write c++ program using loop to repeat word enter by user as number of its character?
Expert's answer
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";
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions