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
What r the attributes using in Win Runner?
why we use mantis? what u mean mantis in IT trends? addvantages of mantis?
What is BASIS
i am getting the error while compiling my cics program with including db2 dclgen member it is showing that ur dclgen member not including and all the host variables are undeclared
hi i m deepak my shedule for NIC pi is 17 Apr please contact me if anybody has interview on same day or give me some idea who have faced
how to work search engine? plz detail answer me.
I want sample papers for NIC Examination. Plz send them to my mail Id das.neelam@gmail.com . Plz send it today, tomorrow i've the exam.
how many types of bytes are there???
Write a program to show polymorphism.
Display names and numbers of employees who have 5 years or more experience and salary less than Rs.15000 using array of structures (name, number, experience and salary)
what is apt_dump_score in datastage where it is useful
write algo for cobol program whichuse three flat file to extract some specific information 8 marks mainframe
Explain with examples any 2 features of OOPS.
Write a program to create a process in UNIX
what is the software to run the GSM gate opener program