The program converts minute to hours & minute format and prints the result on the output screen. It uses basic formula for converting the given minute input to the respective hours.
hours = minute / 60
Program:
#include<stdio.h> int main() { int minute; printf("\n\n\tEnter minutes = "); scanf("%d",&minute); printf("\n\t Entered minutes = %d minutes \n\t Which is equivalent to = %d hours and %d minutes",minute,minute/60,minute%60); return 0; }
Output:
Explanation:
This post was last modified on August 24, 2022