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
How to set fixed width in particular
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 all the validation we need to perform in data stage?
What is autocall macro and how to create autocall macro? what is the use of it?
Can we write a method in JSP.If so how?
How to merge Action Form with Dyna Action Form in Struts.
i want to insert textbox value to sql db. i have only one text box but store four values. ple give any one give sample code in asp.net c#..
When you deliver your C++ headers and C++ library of a class (what all can you change in the class so that application using your class does not need to recompile the code)
Delta 5 weight scale not connect with oracle application what i can do?
Wrtite a JCL for sorting a file with start from 36 postion lenth 9 excluding a num eq to 98768. for 3 marks mainframe
It is possible to take number of controls added to form at run-time.ex-when user enter 6, 6 text boxes get added to form,next time number of controls get change as per user number enter. What is code for that?
how to study PHP my own? i reffered many sites.. but as being a fresher i couldnt follow those... which site will be the best one?
kindly send interview materials
Write a program to find whether a given number is prime or not.
how to convert hashmap to arraylist with iteration