Sorry about this. Here is all the code I have so far.
Code:
#include <cs50.h>
#include <stdio.h>
#include <time.h>
#include <windows.h>
int
main(int argc, char * argv[])
{
int x, y, z, r;
r = 0;
printf("Please select the hour: ");
x = GetInt ();
printf("Minutes: ");
y = GetInt ();
printf("Seconds: ");
z = GetInt ();
printf("The time is: %d:%d:%d\r", x, y, z);
Sleep(1000);
for(r; r == 0; r)
{
if (z == 59)
{
z = 00;
if (y == 59)
{
y = 00;
if (x == 12)
{
x = 1;
}
else
{
x++;
}
}
else
{
y++;
}
printf(" \r");
printf("The time is: %d:%d:%d\r", x, y, z);
Sleep(1000);
}
else
{
z++;
printf("The time is: %d:%d:%d\r", x, y, z);
Sleep(1000);
}
}
}