68 363
Assignments Done
98,7%
Successfully Done
In November 2018

Answer to Question #7030 in C++ for noora

Question #7030
write c++ program using loop to reverse the order of entered word by the user
Expert's answer
write c++ program using loop to reverse the order of entered word by the user

#include <iostream>
#include <string>
using namespace std;

int i=0;
char word[100];

void main(){
cout<<"Enter a word: ";
cin>>word;
for (i=strlen(word)-1;i>=0;i--) cout<<word[i];
cout<<"\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