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
can u send some model papers how computer awareness questions are asked in goverment jobs(oriental insurance)to my mail id me.priyankapadma@rediff.com
what are stubs related to foxpro?
what is the work of 1tier,2tier,&ntier? Plz Explain it!
what is the difference between uservariables and systemvariables (in Environmental variables)???
Given an array of size n+1 which contains all the numbers from 1 to n.Find the number which is repeated in O(n) time.How do you proceed with the same with floating numbers from 0 to 1 instead of 1 to n?
how do i add a column dynamically in a table by using java application?
Hi All, Can any one please send me the difference between informatica 7i and 8i versions, Thanks in advance. vinod
Explain polymorphism. Provide an example.
there are N number of matchboxes numbered 1...N.each matchbox contain various number of stick.Two player can alternatevely pick some amount of stick from the higest stick containing box . The player is condidered win if there is no stick after his move.Find the final move so that the move player win. Note:In case the number of stick is equal ,pick the stick from the higest numbered box. eg: 3 box contain stick as:1,1,1. if u take 1 stick from 3rd numbred box you will any how win the match.
what is the basic and unique feature of dotnet
Hi I am Rathnam, How To Remove the duplicates with out using remove duplicate stage in the datastage
hii I inntrested abt scjp certification but i dont knw abt scjp plz send details abt scjp exam and syllabus.
1. Consider the following input and generate the object code using single pass assembler. JOHN START 0 USING *,15 L 1,FIVE A 1,FOUR ST 1,TEMP FOUR DC F’4’ FIVE DC F’5’ TEMP DS ‘F END
What is the difference between WebIntelligence and Designer in creating universes?
If i have a dataset queried from Sql and I would like to insert the dataset into a specific node in an xml document how do I do this