Professional Documents
Culture Documents
h>
#include<string.h>
int main()
{
int hh, mm, ss;
char a[3];
if(hh<=12 && mm<=59 && ss<=59) //user is allowed to enter time only in 12-
hour format so 'hh' cannot be greater than 12.
{
else
{
printf("\n Provide the correct inputs as mentioned in the problem
statement\n");
}
return 0;
}