@Wlk
88 / 88 / 32
Регистрация: 07.12.2011
Сообщений: 210
|
27.03.2014, 18:47
|
|
C++ | 1
2
3
4
5
6
7
8
9
10
11
12
13
14
| int lowbound = 2, upbound = 99, current = 0;
for(current = lowbound; current <= upbound; current++)
cout << current << ", ";
cout << endl;
cout << endl;
for(current = lowbound; current <= upbound; current++)
{
if(current % 2 == 0)
cout << current << ", ";
else
cout << upbound + (lowbound - current + 1) << ", ";
} |
|
0
|