#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
unsigned number;
double item = 1.23456;
for(number = 8; number < 16; number++)
{
printf("%o ", number);
printf("%x ", number);
printf("%X\n", number);
}
printf("\n");
printf("%p\n\n",&item);
printf("%f\n", item);
printf("%8.2f\n",item);
printf("%-8.2f\n",item);
system("pause");
return 0;
}
|