Start New Discussion within our Software Development Community

I need help writing a program that declares a minutes variable to represent minutes worked on a job, and assign a value to it. Display the value in hours and minutes. For example, 197 minutes becomes 3 hours and 17 minutes. Unfortunately, I don't know much about, any information would be helpful.

int main()
    int a,b,c;
    printf("%d hour %d minutes",a/60,a%60);
    return 0;

this is the C program to do your job.

I like the irony of giving him an answer he can't use. It is also correct and the poster did ask for *any* information. I would therefore add that this poster did indeed answer the op's question as it was asked.
Not C#

Why not share your code so we can help you with it? we are not doing your work...

This article has been dead for over six months. Start a new discussion instead.