Computer Science, asked by shalmaliwakchoure7b, 4 days ago

write a java program that uses parameters as the form of input to convert miniutes into hours.

Answers

Answered by cheemtu
1

import java.io.*;

 

class GFG {

 

 

static void ConvertHours(int n)

{

int minutes, seconds;

 

   minutes = n * 60;

   seconds = n * 3600;

 

   System.out.println( "Minutes = " + minutes

       + ", Seconds = " + seconds);

}

   public static void main (String[] args) {

   int n = 5;

   ConvertHours(n);

   }

     

}

Similar questions