0
Help - Programming
Hello ! I need help from you , who can make me a program with while like this : 1000 999 998 etc 1 but like this : 1000 - one thousand 999 998 etc 900 - nine hundred 800 - eight hundrd etc till 1 - one So all hundrenth numbers will be like that and others 998 799 788 just number. And verticaly if possible. Thanks
3 Answers
0
if you need it to be count down from 1000 to 1 then you need a loop.
int i = 1000;
while (i < 1001)
{
cout << i << endl;
if(i == 0)
{
break;
}
i--;
}
0
#include <iostream>
using namespace std;
int main ()
{
int i=1000;
while(i>=1)
{
cout<<i<<endl;
i--;
}
return 0;
}
This works too , but I need numbers like this 1 - one , 100 - one hundred etc example is up
0
Someone else any solution ?