What is the pseudocode of this c++ code #include<iostream> using namespace std;
ID: 3875010 • Letter: W
Question
What is the pseudocode of this c++ code #include<iostream> using namespace std;int main( ) { char str[80];
cout<<"Enter string: "; cin.getline(str, 80); int l; //Hold length of string //Find the length of the string for(l = 0; str[l] != ''; l++);
//Display the string backwards for(int i = l - 1; i >= 0; i--) { cout << str[i]; } return 0; } What is the pseudocode of this c++ code #include<iostream> using namespace std;
int main( ) { char str[80];
cout<<"Enter string: "; cin.getline(str, 80); int l; //Hold length of string //Find the length of the string for(l = 0; str[l] != ''; l++);
//Display the string backwards for(int i = l - 1; i >= 0; i--) { cout << str[i]; } return 0; } What is the pseudocode of this c++ code #include<iostream> using namespace std;
int main( ) { char str[80];
cout<<"Enter string: "; cin.getline(str, 80); int l; //Hold length of string //Find the length of the string for(l = 0; str[l] != ''; l++);
//Display the string backwards for(int i = l - 1; i >= 0; i--) { cout << str[i]; } return 0; }
Explanation / Answer
Psuedocode For the Given program is below --
1. START
2. DECLARE str[80] as CHAR
3. DECLARE l AS INTERGER
4. INPUT "Enter String"
4. READ str
5. for l = 0 to str[l]!='' step +1
6. endfor
7. for i = l-1 to i>=0 step -18
8. WRITE str[i]
9. endfor
10. return 0
11. STOP
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.