Write a Pseudo Code to find the angle between two hands of a
clock for a given time.
Answer Posted / fanatic
#include<stdio.h>
main()
{
int hr,min;
double angle;
printf("Enter hour and minute in 24 hr format\n");
scanf("%d %d",&hr,&min);
angle=30*hr+(double)min/2-min*6;
if(angle<0) angle*=-1;
while(angle>180) angle-=180;
printf("%.2f\n",angle);
return 0;
}
| Is This Answer Correct ? | 3 Yes | 6 No |
Post New Answer View All Answers
differences between qtp10.0 and 11.0 ?
What is the difference beween joblib and steplib statements
Write a program to show polymorphism.
how can we maintain the previous version scripts to new version.
8.In DSP,Define Signal and System?and various type of signals.
hi i m deepak my shedule for NIC pi is 17 Apr please contact me if anybody has interview on same day or give me some idea who have faced
i want to improve my english vocab for racking campus written exam plz tell me best book for prepration......
Explain the types of operations? Draw the figure for shift and rotate operations?
what is integration testing in real time applications?
I HAVE DONE TESTING TOOLS COURSE,NOW I AM FRESHER,I AM NOT GETTING ANY CALLS,I WANT TO DO THE PROJECT ,WHERE I HAVE TO MEET TO DO THE PROJECT,I AM GOING WITH FAKE EXPERIENCE,SO WHAT I HAVE TO DO.
what is the difference between Windows application and Unix application?
I want to pass .pdf files as OlE Object to crystal report through VB6. Please any one guid me...
V2 SOLUTIONS APTI paper is very easy there are 3 sections 1'st is quant problem on age train traveling speed is given length of train is given we have to find out length of bridge then prob on calender one date is given on Friday hv to find out day of othe date ans is Friday then there was 1 prob on percentage which was very easy ans was 21340 then 2’nd section was english grammer had has been being like that hv to fill in the blanks was very wasy then last section was find relative words there was five Q 1 pant ANS:-breath 2inquire ans :- ask And 3 more out of that 1 ‘s ans was:- body 4 And others ans was :-through THEN THEY HAVE GD There was three topics 1 should we allow india’s talent to go to abrod 2 protest against seperate state is justify 3 inturuption of politics in cricket Thats all guys i cleared both the rounds now preparing 4 interview best of luck
Where do we need Operator overloading?
hoe to data grid use in sql server 2000?