Computer Science, asked by stud3nt7645, 1 year ago

program to display time in hours,and convert time into minutes as well as seconds


stud3nt7645: anyone can answer?

Answers

Answered by Anshi2005
1
<b>Heya mate..❤❤</b>
import java.util.*;
class Time
{
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
Sopln("Input seconds");
int sec= sc.nextInt();
int hours=sec/3600;
sec=sec(PERCENTAGE SIGN)3600;
int min=sec/60;
Sopln("Hours:"+hours);
Sopln("Minutes"+min);
Sopln("Second"+seconds);
}
}

&lt;b&gt;HERE "Sopln"➡System.out.println<br />And Pecentage sign is not in keyboard thats why I have not used it ....<br />Hope it helps you my friend...<br />Please mark it as Brainliest...&lt;/b&gt;

abhijeetpandey103: nice
Anshi2005: Thank you...
abhijeetpandey103: welcoke
abhijeetpandey103: welcome
Similar questions