+ 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); } }
2 Answers
+ 2
Thanks i have passed.
+ 1
Muhammad Sajjad Alam 4023-FBAS/BSSE/F19
Program is right but don't print anything except output.
Also initialise variable with 0