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
hi, all this is shoba m.c.a . i have learned abap but no oppurtunities right now as fresher , right now i want to learn any course on demand any one pls suggest me good course and institute in hyderabad
Iam using Microsoft Visual Studio to create a system for mobile store I want to know how to calculate mobile price that the customer buy and how to reduce quantity from the data base that we have for mobile .And also how to calculate revnue for each mobile and revnue for the total mobile
Write a program to find whether a given number is prime or not.
what is delegate and delegation model give the real live example on delegate model
Please forward important interview and basic questions in VB6 on my email id: usneha_16@yahoo.co.in
Hi..Am done with my Masters recently..Am planning to learn TIBCO.. could anyone suggest me about how the job market will be and Is there any course necessary to learn prior to Tibco..i mean any prerequisite. I dnt have any knowledge on PL/SQL thats it... Plz suggest me in a best way...
what is the difference between read the data from table and infotype
Describe the difference between Interface-oriented, Object-oriented and Aspect-oriented programming
what is d main diff between the java and .net framework
in teradata level primary in table level allows duplicates why?
Hi All, Can any one please send me the difference between informatica 7i and 8i versions, Thanks in advance. vinod
In mainframe SDSF, Can we copy the list of jobs currently executing in SDSF in to a seperate DATASET...?
Is the IT field raise again? What is the position of IT after 4 years?
What binary value will be internally stored for NULL for the type S9(1) COMP 3 in mainframe
what is the extension of SPDS Dynamic cluster tables?