Professional Documents
Culture Documents
SADAR, NAGPUR
ACADEMIC YEAR: 2022-2023
Department of computer engineering
“ANALOG CLOCK”
FOR SUBJECT:
COMPUTER GRAPHICS
Subject code :( 22318)
Semester-3 Guided by:
Mrs. Anwar Ahsan
(H.O.D)
This is a c program which reads the current time from system and shows an analog clock that shows
correct time. The clock hand ticks and the three hands (hour hand, minute hand, second hand) are
used to show correct time. This real-time analog clock c program uses graphics.h library to display
the clock and time.h library to get current time. The program output is as follows:
And finally the output is as shown below