Please! i'm new!! I need help with a time Converter code!!
Hi guys! I'm new here and i'm new programing, so please, can someone help me with that code? It's a Java time Converter! I must convert 2 days in seconds and 53 days in seconds, the code is ok but i don't know how put twice results!! I only can print the first problem but i don't know how resolve the second one! I have the awnser but i can put in! The program don't recognize My second awnser!! Here is the code: import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int days = scanner.nextInt(); //tu código va aquí int a = 2; int b = 24; int c = 60; int d = 60; int sum1 = a*b; int sum2 = sum1*c; int sum3 = sum2*d; System.out.println(sum3); } } /*How can I answer both exercises? Thanks*/