Write a Pseudo Code to find the angle between two hands of a
clock for a given time.

Answer Posted / thsghdth

le 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("%.2

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is OOPS and its concepts?

567


Why did you ever become involved in QA/testing?

1597


Hi guyes, I have cleared 2 technical rounds with cts for liferay and java techonologies, i have client round next week, please tell me how to prepare for this what questions i should be ready to face?

3355


what is radio button? Plz show code this! how will select radio buttons to go next window Forms? Supose o radio button1 o radio button2 o radio button3 o radio button4 how will coding this? Plz explain this!

2897


How does the type system works when there is interoperability between a COM and .Net, i mean what exactly happens there

1562






what is difference between kpo and it industry? that is in terms of work, package etc

1531


what is diff bet ref variable & instance of class

1540


I'm new to ABAP. What is Module pool in SAP?

2117


How does the TCP handle the issue of multiplexing?

2397


when we use mantis? how learn mantis?

1680


the systematic access of small computers in a distributed data processing system is referred as?

2712


What is SAP TAO? · Which Version you are using? · What is the Latest Version in SAP TAO? · What are the Advantages in SAP TAO? · What are the Patches required for SAP TAO? · What is BPT? · Difference between BPT & SAP TAO? · Which Framework using for SAP TAO? · What is CBASE? · What is the SAP TAO Architecture? · What are the Prerequisites for SAP TAO? · SAP Solution Manager Mandatory for SAP TAO 1.0? · SAP Solution Manager Mandatory for SAP TAO 2.X? · What is UI Scanner? · What is Inspector? · How many ways to Create a components using TAO 1.0? · How many ways to Create a components using TAO 2.x? · Which service pack required for SAP TAO 2.7? · What is Import/Export? · What is Consolidate?

2378


What is diffrent between Method and and function in c#

1528


what is best way to create a Thread class & why?

1582


what is web configuration file

1532