+ 1

Hi i am doing first project of time conversion.

I am doing right coding but i am stuck.i am not being proceed.help me solved out.my code is given below. import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("enter number of days"); int days = scanner.nextInt(); //your code goes here int SecondsInDay; SecondsInDay= (days *24*60*60); System.out.println(SecondsInDay); } }

13th Mar 2021, 7:06 AM
Muhammad Sajjad Alam
Muhammad Sajjad Alam - avatar
2 Answers
+ 2
Thanks i have passed.
13th Mar 2021, 7:20 AM
Muhammad Sajjad Alam
Muhammad Sajjad Alam - avatar
+ 1
Muhammad Sajjad Alam 4023-FBAS/BSSE/F19 Program is right but don't print anything except output. Also initialise variable with 0
13th Mar 2021, 7:16 AM
A͢J
A͢J - avatar