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
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
Social Sciences,
4 months ago
Science,
4 months ago
Biology,
9 months ago
History,
9 months ago
Business Studies,
1 year ago