Write a Pseudo Code to find the angle between two hands of a
clock for a given time.
Answer Posted / spacious mamun
#include<stdio.h>
int main()
{
int angle,hour,minute;
printf("Enter the hour: ");
scanf("%d", &hour);
printf("Enter the minute: ");
scanf("%d", &minute);
if(hour < 12) // In case of 24 hour clock
hour=hour+12;//to make the hour in 24 hour format;
{
(int)angle = hour * 30 - minute * 6;
if(angle > 180)
angle = 360 - angle;
printf("The angle between the two handle is: ");
printf("%d\n", angle);
}
return 0;
}
| Is This Answer Correct ? | 12 Yes | 11 No |
Post New Answer View All Answers
Wrtite a JCL for sorting a file with start from 36 postion lenth 9 excluding a num eq to 98768. for 3 marks mainframe
shall we execute our java programmes in jre
can any method return type may be constructor , or that method name allow
through which algorithm does the garbage collector works? how the garbage collector will understand that the object will going to be deleted?
write the a cl program with the following specification A. Accept 2 parameters-date and date type B. if date type is J then convert date to *MDY format C. if date type is M convert date to *JUL format 4.send a program message with the value of converted date Please explain for each with coding?
can we retrieve only integer/String type columns from a table,if yes how?
Write a program to find duplicate number from array in minimum time complexity.
1. How many jobs can we write in a single file? 2. How many maximum members can exist in a single partition data set(pds) in jcl?
I have try to write a record in a TDQ from a fle.... what are the steps to do... can anybody plz come with a solution
pleasew define carrier scope in abap (sap).
hai i am prasanna.I am MCA 2009 fresher.tell me about certifications.which certification helps me to improve my carrier and to get a technically oriented job ,which certification helps to get job faster.
what is diff bet ref variable & instance of class
How to set on/off a group of indicators in a single statement?
how to check single or double byte in struts
Hi I am Rathnam, How To Remove the duplicates with out using remove duplicate stage in the datastage