- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 3
- Posts with Downvotes
- 2
- Downvoting Members
- 2
i need help converting this C++ to pseudocode help me pleasee [CODE]#include <iostream> using namespace std; { string Z[]={"zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"; string A[]={"zero","ten","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"; int N,N1,N2,N3, r; string text; N1=N/100; r=(N-(N1*100)); if (r<20){ cout<< Z[N1]+"hundred and"+A[r]; } else{ N2=(N-N1*100)/10; N2=r/10; N3(r-(N2*10)); cout<<[N1]+"hundred and"+A[N2]+[N3]; } cin>>N; return 0; }[/CODE] |
|
Re:
Hi i'm new to using c++ and i would like to ask if you could help me out. I have to somehow get a working c++ program that will allow me to convert any one, two or three digit positive integer into words using string/array method. Say, 111 will be … |