package yqs;import java.util.Scanner;public class time {public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.println("Enter an integer for seconds:"); int seconds = input.nextInt(); int minutes = seconds/60; int remainingSeconds = seconds%60; System.out.println(seconds + "seconds is"+minutes +" minutes and"+ remainingSeconds + "seconds");}}如以上代码Scanner input = new Scanner(System.in); System.out.println("Enter an integer for seconds:");这两个有什么关系
添加回答
举报
0/150
提交
取消