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

15th Nov 2016, 9:53 PM
Ardian Boss
Ardian Boss - avatar
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--; }
16th Nov 2016, 12:55 AM
𝐹𝓇𝒶𝓃𝓀𝓎 𝐵𝓇𝒶𝒾𝓃𝐵𝑜𝓍
𝐹𝓇𝒶𝓃𝓀𝓎 𝐵𝓇𝒶𝒾𝓃𝐵𝑜𝓍 - avatar
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
16th Nov 2016, 4:53 AM
Ardian Boss
Ardian Boss - avatar
0
Someone else any solution ?
16th Nov 2016, 10:54 AM
Ardian Boss
Ardian Boss - avatar