#include <stdio.h>
#include <stdlib.h>
main()
{
printf("The color: %s\n","blue");
printf("First number: %d\n",12345);
printf("Second number: %04d\n",25);
printf("Third number: %i\n", 1234);
printf("Float number: %3.2f\n", 3.14159);
printf("Hexadecimal: %x\n", 255);
printf("Octal: %o\n", 255);
printf("Unsigned value: %u\n", 150);
printf("Just print the percentage sign %%\n",10);
}
No comments:
Post a Comment
please wait...