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
Get step-by-step solutions from verified subject matter experts
