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
Hello...has anyone interviewed with Information Management Services(IMS)located in Silver Spring MD??If yes,what can you share about the programming test and the analytical test?
what is the basic and unique feature of dotnet
Write a program to find duplicate number from array in minimum time complexity.
what is session state?
Can i please VHDL code for D-Latch with clear input ?? (HINT: Set up a “Process” with appropriate sensitivity list to get the desired D-Latch with Clr working.) Inputs and Outputs: entity Lab4b is Port ( Clr, Clk, D : in STD_LOGIC; Q : out STD_LOGIC); end Lab4b;
what are importance in problem tracking
THE CHANNEL IN DATA COMMUNICATION CAN BE?
What is WEB 3.0? What are the features their in WEB3.0
5. How do you round the addition or subtraction of two numbers in assembler?
Hi I am Rathnam, How To Remove the duplicates with out using remove duplicate stage in the datastage
i am getting the error while compiling my cics program with including db2 dclgen member it is showing that ur dclgen member not including and all the host variables are undeclared
1.what is the vesition managment.
In an customer exit (include Z) program, only the last record is getting fetched. The exit is getting called after pressing save button. What to write for fetching the first record ? Before saved to a SAP table how can i call all these records in an itab in the exit ?
how to convert the data from HTML file to SAS dataset?
what is the software to run the GSM gate opener program