Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Write a Pseudo Code to find the angle between two hands of a
clock for a given time.

Answer Posted / spacious 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
hour=hour+12;//to make the hour in 24 hour format;
{
(int)angle = hour * 30 - minute * 6;

if(angle > 180)
angle = 360 - angle;
printf("The angle between the two handle is: ");
printf("%d\n", angle);
}

return 0;
}

Is This Answer Correct ?    12 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Given an array of size n, containing every element from 1 to n+1, except one. Find the missing element.

1067


I am looking for NIC Sample papers or any patern of questions/ syllabus plz, send me on hamid.khan135@yahoo.in Regard

1958


What's the difference b/w Table & Templete in Smartform?

2210


what is the diff bw sql direct and jdbc update can't we do select and updating operation in sql direct

2153


they asked me about srs (software requirement specifcation)? how can i get anydocumentation about srs & other documnts infomation like bdd, in testing? its urgent?

1899


what is delegate and delegation model give the real live example on delegate model

3277


I want Ada programming language books. Could anyone post me any link for that?

3363


What is the purpose of element of in Ajax

2455


Need guidewire related Documents(Interview Question/Tips/Best Practice/Dumps)

601


what is meaning of MDM in sap?let me know that meaning

2239


can we use commit,rollback in triggers and how?

1958


what is technical system, business system, logical system in sap pi7.0

2571


Always use scope terminator like End-If with IF, End- Evaluate with Evaluate statement.Can somebody explain me the detail logical explanation?

1982


how to fin top two miximum values in sql? not 2nd both max value of 1st and 2nd both have to find out

1897


Write a program to swap the content of two variables without using a third variable.

1053