Поделитесь своими знаниями, ответьте на вопрос:
Запишите 32-битный IP -адрес в виде четырёх десятичных чисел, разделённых точками: а) 11011010001011101011001101010101 б) 10001111110011100011101000110001
#include <iomanip>
using std::cout;
using std::cin;
using std::endl;
using std::setw;
using std::fixed;
int main()
{
const int n = 6, m = 6;
int a[n][m];
int value;
for(int i = 0; i < n; i++)
{
value = 37 + i;
for(int j = 0; j < m; j++)
{
a[i][j] = value -= 6;
}
}
for(int i = 0; i < n; i++)
{
for(int j = 0; j < m; j++)
{
cout << setw(2) << a[i][j] << " ";
}
cout << endl;
}
cin.get();
return 0;
}