Program:- public class p3a { public static void main(String[] args) { int n=999,months,days; months=n/30; days=n%30; System.out.println(n+" = "+months+" Months and "+days+" Days"); } } Output:-
No comments:
Post a Comment