Code:
#include <stdlib.h>
#include <stdio.h>
int main()
{
/**/
unsigned int value = 3000000000;
double pi = 3.14159141;
char initial = 'G';
short hour = 0, minute = 0, second = 0;
int numsys = 0;
/**/
printf("%-15u%d\n", value, &initial);
printf("Enter a number please: ");
scanf("%d", &numsys);
printf("Hexadecimal equivalent = %x\n", numsys);
printf("octal = 0%o\n", numsys);
printf("PI = %lf\n", pi);
printf("Enter the time in hh:mm:ss: ");
scanf("%d:%d:%d", &hour, &minute, &second);
printf("%hd:%hd:%hd\n", hour, minute, second);
printf("\"I Deserve 100\%!\"\n");
int ch;
ch = getchar();
return 0;
}
That's the working code, compare the two programs and see what I changed.