#include <iostream>
using namespace std;
int main(){
unsigned int a, b[4], c;
while (cin >> a)
{
for (c = 0; c < 4; c++)
{
b[c] = a % 256;
a /= 256;
}
cout << b[3] << "." << b[2] << "." << b[1] << "." << b[0] << endl;
}
}
#include
using namespace std;
int main(){
unsigned int a, b[4], c;
while (cin >> a)
{
for (c = 0; c < 4; c++)
{
b[c] = a % 256;
a /= 256;
}
cout << b[3] << "." << b[2] << "." << b[1] << "." << b[0] << endl;
}
}
有必要貼答案嗎。