Question: Complete the following code in order to calculate how many seconds there are in n days. Assume that the initial value of variable n is

Complete the following code in order to calculate how many seconds there are in n days. Assume that the initial value of variable n is already set to a positive integer.

E.g. 1: if the value of n is 1, the code prints 86400. E.g. 2: if the value of n is 2, the code prints 172800.

Here is the code to use:

int seconds;

//YOUR CODE HERE

System.out.println(seconds);

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!