Nautical bell: Difference between revisions

Content added Content deleted
(→‎{{header|C}}: Mark incorrect)
m (→‎{{header|C}}: remove attribution)
Line 147: Line 147:


Sounds the bell once every half hour (12:30, 1:30 etc.) and for as many times on the hour (12 times on 12 PM/AM, 3 times on 3 AM/PM etc.)
Sounds the bell once every half hour (12:30, 1:30 etc.) and for as many times on the hour (12 times on 12 PM/AM, 3 times on 3 AM/PM etc.)
<lang C>
<lang C>#include<unistd.h>
/*Abhishek Ghosh, 20th September 2017*/

#include<unistd.h>
#include<stdio.h>
#include<stdio.h>
#include<time.h>
#include<time.h>