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
1.what is the vesition managment.
Q1.Write a C program which asks the user for a number between 1 to 9 and shows the number. If the user inputs a number out of the specified range, the program should show an error and prompt the user for a valid input.
Find out the list of roles which gives access to GUI activities? thanks in advance
what is web service in java? have u use before.
what is the filters in biztakk server? where it can use?
what are the missinschema properties and should we pass primary key in select command
what is dot net framework
What is WEB 3.0? What are the features their in WEB3.0
How can we develop a multi-tier application in Java?
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
What is the use of Differ interface check box in Ship confirm?
Colors specified with the notation
Given an array all of whose elements are positive numbers, find the maximum sum of a subsequence with the constraint that no 2 numbers in the sequence should be adjacent in the array. So 3 2 7 10 should return 13 (sum of 3 and 10) or 3 2 5 10 7 should return 15 (sum of 3, 5 and 7)
how do find the user exit for selected feild whatis the process and can u plz explain it
iam confused to choose among testing, .net and java can anybody help me????????