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

ProfessorProfessor
I will give you the most educated answer.
Chat with Professor
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine
RossRoss
Every question is just a happy little opportunity.
Chat with Ross
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