write a java program that uses parameters as the form of input to convert miniutes into hours.
Answers
Answered by
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