If you want to find Mirror watch time then put input as your real watch time and in output you can find mirror image watch time.
OUTPUT-
#include<stdio.h> #include<conio.h> void main() { int h,m,s; clrscr(); printf("Enter Hour: "); scanf("%d",&h); printf("Enter Min:"); scanf("%d",&m); printf("Enter Second:"); scanf("%d",&s); if(h>12||m>60||m>60) { printf("\nEnter correct time:\n"); } printf("Mirror Time:\n"); if(h>=1&&h<=12&&m>=1) { h=12-h-1; printf("%d",h); } else if(h>=1&&h<=12&&m==0) { h=12-h; printf("%d",h); } if(m>=1&&m<=60) { m=60-m; printf(":%d",m); } else if(m==0) printf(":%d",m) ; if(s>=1&&s<=60) { s=60-s; printf(":%d",s); } else if(s==0) printf(":%d",s) ; getch(); }
OUTPUT-
c++ programming tutorial
ReplyDeletesuperb way of explaining, and great blog to get wonderful information.
I have been meaning to write something like this on my website and you have given me an idea. Cheers.
ReplyDeleteData Science course in Indira nagar
Data Science course in marathahalli
Data Science Interview questions and answers
Data science training in tambaram
Data Science course in btm layout
Data science course in kalyan nagar
Data science course in bangalore
Thank you for sharing this Information.
ReplyDeleteCheck out the best
Dog Cages
bedroom furniture nz
entertainment unit
Thanks for posting this kind of worthy information. this was really very helpful to me. keep continuing.
ReplyDeleteSpoken English Classes in Chennai
Best Spoken English Classes in Chennai
IELTS Coaching in Chennai
IELTS Coaching Centre in Chennai
English Speaking Classes in Mumbai
English Speaking Course in Mumbai
IELTS Classes in Mumbai
IELTS Coaching in Mumbai
IELTS Coaching in Anna Nagar
Spoken English Class in Anna Nagar
ReplyDeleteThanks for sharing this unique information with us.Keep update like this.
DevOps Training in Velachery
DevOps Training in Anna Nagar
DevOps Training in Tambaram
DevOps Training in T Nagar
DevOps Training in Vadapalani
DevOps Training in Adyar
DevOps Training in OMR
DevOps Training in Thiruvanmiyur
DevOps Training in Porur