Computer Science, asked by BrainMaster143, 1 year ago

Plz help me in the program Tommorow is my xam plzz help.
Q7

Attachments:

Answers

Answered by mn121
1

import java.util.*;

public class time

{

public static void main(String args[])

{

Scanner in = new Scanner(System.in);

int s,m,h;

System.out.println("enter time in seconds =");

s= in.nextInt();

h=s/3600;

s=s%3600;

m=s/60;

s=s%60;

System.out.println("Time is "+h+" hours "+m+" minutes "+s+"seconds");

}

}

hope it helps you...

please mark it as brainliest...

^_^

Answered by ziya1818284
0

All the best

May u come up with good results

My best wishes are there with u dear

Similar questions