Elow, I'm new member of this forum and also new in C++.I'm just start to learn it
I need help.....i want to write a program that will ask the use an integer number and output the word equivalent ofthe input(1000-3000)limit inclusive
example
input:1525
output: one thousand five hundred twenty-five
i will use a CONDITION STATEMENT but I;mconfuse with the CASE how willyou know if you will use CASE 1 Up to CASE 9
#include<iostream.h>
int main()
{
int num,temp;
cin>>num;
if (num < 1000 || num > 3000)
{
cout<<"invalid";
else
{
temp=num/1000;
num=num%1000;
switch(temp)
{
case 1:cout<<"one thousand";
i dont know if I'm writing the right CODE, Please help i really dont have any idea about how will your ouput be in words
please help
thanks