answersLogoWhite

0


Best Answer

#include <stdlib.h>

#include <stdio.h>

int hoursToMinutes( int hours ){ return 60 * hours; }

int main(int argc, char *argv){

if(argc != 2)

return 1;

printf("%i\n", hoursToMinutes(atoi(argv[1])));

return 0;

}

User Avatar

Wiki User

15y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

Using your favourite text editor or integrated development environment enter the text of the C program which follows the algorithm to multiply the hours by the number of minutes in an hour, namely 60.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

write a c progame to convert seconds to hours,minitues and seconds?

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

int hours; couthours; minutes = hours * 60; cout

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: C program convert hours to minutes?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a c program which displays digital watch on the screen after taking the hours and minutes from the user?

Write a program which displays digital watch on the screen, after taking the hours and minutes from the user.


How do you convert from program C?

Your question is inco


How do you write a c program to convert binary to decimal by using while statement?

write a c++ program to convert binary number to decimal number by using while statement


How do you convert from seconds to hours in c plus plus?

There are 60 seconds per minute and 60 minutes per hour. So divide the total number of seconds by 360 to get the number of hours.


C program to receive floating point and convert it into binary?

scanf


What fraction of day is c minutes?

It is c/60 hours or c/1440 days.


A student skipped a step when she tried to convert 18 hours into seconds and she got the following incorrect result What conversion ratio did she skip in this multiple-step conversion A. B. C. D.?

She skipped the conversion ratio of minutes to seconds, which is 60 seconds per 1 minute. To convert 18 hours to seconds, you need to multiply 18 hours by 60 minutes/hour and then by 60 seconds/minute.


How do you convert from assembly to binary in c plus plus?

Use inline assembly instructions. Then compile your C++ program to produce the machine code.


How do you write program to convert meter to kilometer in c plus plus?

Divide it by 1000.


How do you write a program in C to convert capital letters into small letters?

Use the tolower() function in the C standard library.


Write a C program to convert hexadecimal number into decimal number?

pongada punda vayanungala ..................


Write a program to convert stack into queue using c language?

In order to write a program to convert stack into queue using c language you must be able to identify the proper program. Having a special certification in programing will be beneficial as well to make sure you recognize the proper queues for the programs.