@PointsEqual
ниначмуроФ
837 / 521 / 33
Регистрация: 12.10.2009
Сообщений: 1,915
|
01.12.2011, 08:13
|
|
C++ | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
| #include <iostream>
using namespace std;
void f(int value)
{
int cnt = 0;
while(value)
{
int curr = value % 10;
value /= 10;
for(int i = 0; i < cnt; ++i)
{
curr *= 10;
}
++cnt;
cout << curr << endl;
}
}
int main()
{
f(45632);
return 0;
} |
|
0
|