Computer Science, asked by sarvankumar1420, 10 months ago

write an algorithm to convert the given minutes into hour and days​

Answers

Answered by anamika1623
0

Answer:

1min is equal to 60sec

60min is equal to 1hour

1 days contains 24 hours

multiple tis to change what u want

pls make brainliest

Answered by hoangmustang
0

Answer:

DUDE, CHECK OUT MY SOLUTION, IT IS WRITTEN IN JAVA:

package newPackage;

import java.util.*;

public class minuteToHourDay {

public static void main(String[] args) {

 

Scanner input = new Scanner(System.in);

System.out.println("PLEASE ENTER MINUTES: ");

int minutes = input.nextInt();// input minutes

int anotherm = minutes;

int day = 0;

day = minutes /= 1440;//convert minutes to day since one day has 1440 minutes

int left = 1440 * day;

int hours = 0;

anotherm -= left;

hours = anotherm /= 60;

System.out.println(day + " "+ hours);//PRINT DAY FIRST THEN HOURS

}

}

Explanation:

BRAINLIEST!

Similar questions