Question: I am coding to make a digital clock using the Mbed Complier. The clock works perfectly well but I need help implementing an AM/PM system
I am coding to make a digital clock using the Mbed Complier. The clock works perfectly well but I need help implementing an AM/PM system into this code.

#include "mbed.h" 3 int main) int h = 12; int 3-0; while(1) if (3>59) ( 12 16 17 if (m>59) ( m0: 19 20 21 if (h>12) h = 1; 23 printf(" %02d:%02d:%02-t,h,m,?); 26 28 wait (1) #include "mbed.h" 3 int main) int h = 12; int 3-0; while(1) if (3>59) ( 12 16 17 if (m>59) ( m0: 19 20 21 if (h>12) h = 1; 23 printf(" %02d:%02d:%02-t,h,m,?); 26 28 wait (1)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
