Etudes/BTS/C++/manipulateurAvances.cpp

19 lines
322 B
C++
Raw Permalink Normal View History

2016-10-14 15:52:18 +00:00
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
cout << setfill('.');
for (int i = 0; i < 10; i++)
{
if (i%2)
cout << "|" << left << setw(5) << i << "|" << endl;
else
cout << "|" << right << setw(5) << i << "|" << endl;
}
return 0;
}