answersLogoWhite

0

#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

Still curious? Ask our experts.

Chat with our AI personalities

BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
JudyJudy
Simplicity is my specialty.
Chat with Judy
JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan
More answers

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.

User Avatar

Wiki User

12y ago
User Avatar

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

User Avatar

Wiki User

13y ago
User Avatar

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

User Avatar

Wiki User

15y ago
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