
where is the mistake here ??
import java.utill.Scanner; public class Time { public static void main (String [] args) {
Scanner keyboard = new Scanner (System.in);
System.out.println ("Enter Secends");
int Secends = keyboard.next();
int houres = Secends / 3600;
int minutes = (Secends % 3600)/60;
int newSecends = Secends - houres * 3600 + minutes * 60;
System.out.println (Secends+"Secends have"+houres+"houres,"+minutes+"minutes and"+new Secends+"secends");
}
}
the compilar told me that there is only one error...
thx..,

import java.util.Scanner;
public class Time {
public static void main (String [] args) {
Scanner keyboard = new Scanner (System.in);
System.out.println ("Enter Secends");
int Secends = keyboard.nextInt();
int houres = Secends / 3600;
int minutes = (Secends % 3600)/60;
int newSecends = Secends - houres * 3600 + minutes * 60;
System.out.println (Secends+"Secends have"+houres+" houres,"+minutes+" minutes and"+newSecends+" secends");
}
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.