Hello
First of all i am new to c++ im using c++ 4.5 or turbo c++ 4.5 (borland)
because i want to learn the old c++ before the new c++ so i can make a thesis about it on how it evolves and etc..
_____________________________________________________________________________
So now my problem is im having a trouble making this pattern using do while statements
1234
123
12
1
this is the code i have:
#include<iostream.h>
int x;
main()
{
do
{
cout<<x;
}
while(x>10)
return 0;
}
PLEASE HELP :'(
It works for any arithmetic type (long long, int, char, double ...and even bool). As far as I know other types except special user defined types have no operator /=:)
That's a problem with your code then, not vlad's. It should be while (x /= 10 > 0). But that's irrelevant. The code supplied suits the needs of the OP.