Comment #2 Wednesday, January 9, 2002 12:50 PM
void SpanishNum();
int number, number2,count;
int main()
{
cout<<"Welcome To Spanish v2.54b. Please enter a number(1-5)\n for its Spanish equivalent: ";
SpanishNum();
return(0);
}
void SpanishNum()
{
cin>>number;
if(number==1)
cout<<"\n\n1 = uno\n\n";
else if(number==2)
cout<<"\n\n2 = dos\n\n";
else if(number==3)
cout<<"\n\n3 = tres\n\n";
else if(number==4)
cout<<"\n\n4 = cuatro\n\n";
else
cout<<"\n\n5 = cinco\n\n";
count=number;
number2=number-1;
do
{
count++;
if(count==1)
cout<<"\n\n1 = uno\n\n";
else if(count==2)
cout<<"\n\n2 = dos\n\n";
else if(count==3)
cout<<"\n\n3 = tres\n\n";
else if(count==4)
cout<<"\n\n4 = cuatro\n\n";
else
{cout<<"\n\n5 = cinco\n\n";
count=0; }
}
while(count!=number2);
}
Please login to comment and/or vote for this skin.
Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:
- Richer content, access to many features that are disabled for guests like commenting on the forums and downloading files.
- Access to a great community, with a massive database of many, many areas of interest.
- Access to contests & subscription offers like exclusive emails.
- It's simple, and FREE!
Comment #1 Wednesday, January 9, 2002 1:52 AM