please check my pseudocode

based on this c++ program.i need design pseudocode.i already made the pseudocode.please check any mistake

#include<iostream>
using namespace std;
void xRev(int);
void main() {
int x;
cout<<"Please enter 3-digit positive integer : ";
cin>> x;
xRev(x); }
void xRev (int n) {
while(n >0) {
cout<< n % 10;
n = n / 10; }
cout << "\n";}


this is my pseudocode
Begin
1.read int x
2.Display"Please enter 3-digit positive integer"
3.Enter any int x
4.While (n>0)
6.Display n%10
End
@Lia

I checked out your program, and it works great. I would change the wording of
cout <<"Please enter 3-digit positive integer : "; to something more like
cout<<"Please enter a 2 digit or larger, positive integer : ";
since your program will except numbers larger than 999.
Topic archived. No new replies allowed.