السلام عليكم
تكفوون ساعدووني في السؤالين
السؤال الاول :
5. Write a class called TimeConvert, which when executed, prompts the user for to enter a Number of seconds, and then it prints out the equivalent number of days, hours, and minutes. You do not have to worry about excess seconds.
A sample run is given below.
Enter total number of Seconds:
84939
84939 second is equal to:
0 day
23 Hours
35 minutes
[Hint: Use the Scanner class to read input from the command console]
السؤال الثاني :
6. Write a program in Java to interchange values of two variables without using the third variable. If A=10 , B=20 after interchange A=20, B=10