Quote:
Originally posted by OPENCCT
just can't seem to get this to work
please help
#include <iostream.h>
#include <stdlib.h>
#include <stdio.h>
int main()
{
/**/ unsigned int value = 3000000000;
short num = 30000;
double pi = 3.14159141;
char inital = 'G';
short hour = 0, minute = 0, second = 0;
int numsys = 0;
/**/
printf("\n%-15u%c", value, &initial);
printf("\nEnter a number please\n");
scanf("%d", &numsys);
fflush(stdin);
printf("Hexadecimal equivalent = %x\n", numsys);
printf("octal = %00\n", num);
printf("\n%9.4f", pi);
printf("\nEnter the time in hh:mm:ss\n");
scanf("\n%hd %hd %hd", &hour, &minute, &second);
fflush(stdin);
printf("\n%hd:%hd:%hd:", hour, minute, second);
printf("\n\"I Deserve 100%%!\"\n");
system("PAUSE");
return 0;
}:confused: