answersLogoWhite

0

C program convert hours to minutes?

Updated: 8/11/2023
User Avatar

Wiki User

14y ago

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

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

Wiki User

11y 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

12y ago

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

This answer is:
User Avatar

User Avatar

Wiki User

14y 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.


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

Divide it by 1000.


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 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.


What is complier and its types in c?

C compiler is a set of program written in order to convert a user code into an executable code which is understood by a Computer.