Computer Science, asked by karabichandra3, 3 months ago

Write a Java program to input and find out 67 days is equal to how many months and days​

Answers

Answered by sumithrasumi2215
4

Answer:

public class Month

{

public static void main ()

{

int days = 67;

int month, Month 2;

month =days /30;

not included in the program (67/30=2)

month2=days%30;

System.out.println(month+"MONTHS"+month2+"DAYS");

}

}

Similar questions