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

What else can I help you with?

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.