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
I HAVE DONE TESTING TOOLS COURSE,NOW I AM FRESHER,I AM NOT GETTING ANY CALLS,I WANT TO DO THE PROJECT ,WHERE I HAVE TO MEET TO DO THE PROJECT,I AM GOING WITH FAKE EXPERIENCE,SO WHAT I HAVE TO DO.
If u need any fake experience certificate in software side, contact me at: vikramyadhav@gmail.com
which book we learned this mantis? how many version are realsed this mantis upto now?
how to data grid use in data bind?
What is autocall macro and how to create autocall macro? what is the use of it?
how many types of operating system are avaliable?
how to add Servlet-api.jar file into eclipse 3.3.2 ?
Tell me the jobs for the MCA Fresher in delhi, Noida..
write algo for cobol program whichuse three flat file to extract some specific information 8 marks mainframe
through which algorithm does the garbage collector works? how the garbage collector will understand that the object will going to be deleted?
define profiler???
how do find the user exit for selected feild whatis the process and can u plz explain it
What is ur porject Architecture? If anyone ask what i have to specify here..
Please describe an example where you used object orientation in one of your programs.
1.Mutating table