class Days
{
public static void main(String…s)
{
int n,m,d;
n=Integer.parseInt(s[0]);
m=n/30;
d=n%30;
System.out.println(n+” days“+” = “+m+” months “+”and “+d+” days”);
}
}
class Days
{
public static void main(String…s)
{
int n,m,d;
n=Integer.parseInt(s[0]);
m=n/30;
d=n%30;
System.out.println(n+” days“+” = “+m+” months “+”and “+d+” days”);
}
}
This program was a very good program thanks for the program.
i don’t understand why we use parseint in that program
thanks for