Computer Science, asked by Nusu8136, 8 months ago

Keeping in mind there are 86400 seconds per day, write a program that calculates how many seconds there are in a week, if a week is 7 days. Print the result on the screen.

Answers

Answered by debjitdey95
0

Answer:

You didn't mention What type of program you need so this is a Java Program I am giving.

Explanation:

import java.util.*;

public class time

{

public static void main(String args[ ] )

{

Scanner sc=new scanner (System.in)

int sec, day, val;

sec=86400;

day=7;

val=sec*day;

System.out.println("Number of seconds in a week i.e. 7 days is :"+val);

}

}

Similar questions