Write a Pseudo Code to find the angle between two hands of a
clock for a given time.
Answer Posted / 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
{
(int)angle = hour * 30 - minute * 6;
if(angle > 180)
angle = 360 - angle;
printf("%d\n", angle);
}
else
printf("bye\n");
return 0;
}
| Is This Answer Correct ? | 2 Yes | 16 No |
Post New Answer View All Answers
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#..
how do find the user exit for selected feild whatis the process and can u plz explain it
Hi All, Can any one please send me the difference between informatica 7i and 8i versions, Thanks in advance. vinod
Find out the list of authorization objects which contains activity as a field? Thanks in advance.
is it acceptable if we declare multiple exceptions in same overridden method.
what is the use MDM(Master Data Management)and meaning
write algo for cobol program whichuse three flat file to extract some specific information 8 marks mainframe
what is the use of occurs 10 or (any number) in the internal table declaration with header line.
When we delete logfiles such as screenshots how does it affect the ldf file? Ive seen huge change while adding screenshots in the ldf file but a very minor one deleting them.Please Explain
19. Given a system that is described with the following equation, X=A+(B.(A̅+C)+C)+A.B.(D̅+E̅) a) Simplify the equation using Boolean Algebra. b) Implement the original and then the simplified equation with a digital circuit. c) Implement the original and then the simplified equation in ladder logic.
what is the main usage of an abstract keyword?please follow the program class A { void display() { System.out.println("hai"); } void print() { } } class B extends A { void print() { System.out.println("Hello"); } } In this program i was gives the implementation of print() according to my requirements in subclass.And there is no definition in superclass then why we can use abstract keyword before a method that i want to gives definition in other classes,is any mistakes in the above usage of method?
As per interoperatbility programs written in one language can be used by other language. How can we restrict the features of one language (say C#) in the programmer written in another language (say VB)..for example we have some features like operator overloading which is possible C#.NET (not in VB.NET), how can we restrict that when we are using this code in VB.NET.
what do u mean by tagging
How do i find out the number of parameters passed into function?
when we use mantis? how learn mantis?