Tuesday, 8 May 2012

Convert given no. of days into months and days



/* Write a program to convert given no. of days into months and days.

  (Assume that each month is of 30 days)

  Example :         

  Input - 69  

 Output - 69 days = 2 Month and 9 days */



class DayMonthDemo{
      public static void main(String args[]){
      int num = Integer.parseInt(args[0]);
      int days = num%30;
      int month = num/30;
      System.out.println(num+" days = "+month+" Month and "+days+" days");
   }
}


34 comments:

  1. I read this piece of writing fully regarding the resemblance of newest and previous technologies, it's amazing article.

    My webpage ... Louis Vuitton Handbags

    ReplyDelete
  2. Thanks for one's marvelous posting! I seriously enjoyed reading it, you're a great author.

    I will always bookmark your blog and may come back later in life.
    I want to encourage that you continue your great work, have a nice afternoon!


    Feel free to visit my site; Abercrombie

    ReplyDelete
  3. These are truly fantastic ideas in concerning blogging.
    You have touched some fastidious points here. Any way keep up wrinting.



    my web blog ... http://wealthwayonline.com/

    ReplyDelete
  4. Thanks designed for sharing such a fastidious thinking, post is pleasant, thats why i
    have read it entirely

    my blog ... Louis Vuitton Handbags Outlet

    ReplyDelete
  5. Hi! I'm at work browsing your blog from my new apple iphone! Just wanted to say I love reading through your blog and look forward to all your posts! Carry on the excellent work!

    Look into my web page Cheap Jerseys

    ReplyDelete
  6. An outstanding share! I have just forwarded this onto a coworker who had been conducting a little research on this.
    And he actually ordered me dinner simply because
    I stumbled upon it for him... lol. So allow me to reword this.
    ... Thank YOU for the meal!! But yeah, thanks for spending time to talk about this topic here on your website.



    Feel free to visit my web site Authentic Mario Lemieux Jersey

    ReplyDelete
  7. Hey I know this is off topic but I was wondering if you knew of
    any widgets I could add to my blog that automatically tweet my newest twitter updates.
    I've been looking for a plug-in like this for quite some time and was hoping maybe you would have some experience with something like this. Please let me know if you run into anything. I truly enjoy reading your blog and I look forward to your new updates.

    Have a look at my homepage Air Max2

    ReplyDelete
  8. I am really pleased to glance at this blog posts which contains tons
    of useful information, thanks for providing these information.


    Feel free to visit my web site :: Jordan Femme

    ReplyDelete
  9. It's awesome in support of me to have a web site, which is good designed for my experience. thanks admin

    Here is my web blog: Click This Link

    ReplyDelete
  10. You could definitely see your expertise in the work
    you write. The arena hopes for even more passionate
    writers like you who are not afraid to say how they believe.
    At all times follow your heart.

    Feel free to surf to my blog post :: Sidney Crosby Jersey

    ReplyDelete
  11. A motivating discussion is definitely worth comment. I do think that you need
    to write more about this subject matter, it might
    not be a taboo subject but usually people do not talk about these topics.

    To the next! Many thanks!!

    Feel free to visit my web-site: Louis Vuitton Outlet

    ReplyDelete
  12. Hello! I know this is kinda off topic but I'd figured I'd ask.
    Would you be interested in trading links or maybe
    guest writing a blog post or vice-versa? My website discusses a lot of the same subjects as yours and I think we could greatly benefit from each other.
    If you happen to be interested feel free to send me an email.
    I look forward to hearing from you! Superb blog by the
    way!

    My homepage; Cheap Louis Vuitton Handbags

    ReplyDelete
  13. You actually make it appear really easy with your presentation but I to find this matter to
    be really something which I believe I would by no means understand.
    It sort of feels too complex and extremely extensive for me.

    I'm having a look forward for your subsequent post, I'll try to
    get the hold of it!

    Here is my blog post ... Louis Vuitton Bags

    ReplyDelete
  14. Valuable info. Lucky me I found your web site by accident,
    and I'm surprised why this twist of fate didn't took place in
    advance! I bookmarked it.

    My website ... Discover More

    ReplyDelete
  15. Pretty component to content. I just stumbled upon your weblog
    and in accession capital to say that I acquire in fact loved account your weblog posts.

    Any way I will be subscribing to your feeds or even I success you get right of entry to persistently quickly.


    Also visit my web-site ... clicking Here

    ReplyDelete
  16. Nice blog here! Also your website loads up very fast!

    What web host are you using? Can I get your affiliate link to your
    host? I wish my web site loaded up as fast as yours lol

    Here is my web page; helpful resources

    ReplyDelete
  17. Marvelous, what a web site it is! This website gives
    helpful information to us, keep it up.

    Feel free to visit my site ... visit this link

    ReplyDelete
  18. If you would like to take much from this post then you have to apply such methods to
    your won website.

    My site - wiifli.com

    ReplyDelete
  19. If some one needs expert view about running a blog then i propose
    him/her to pay a visit this webpage, Keep
    up the nice work.

    Visit my site ... Full Article

    ReplyDelete
  20. I read this piece of writing completely regarding the difference of hottest
    and previous technologies, it's amazing article.

    Here is my weblog: Read More Here

    ReplyDelete
  21. Have you ever considered about adding a little bit more
    than just your articles? I mean, what you say is valuable and everything.
    But think of if you added some great pictures or
    video clips to give your posts more, "pop"! Your content is excellent but with pics and clips, this blog could
    undeniably be one of the best in its field. Superb blog!

    My blog ... Boutique Air Max

    ReplyDelete
  22. Hi there! This post could not be written much better!
    Reading through this article reminds me of my previous roommate!
    He continually kept preaching about this. I most certainly will forward this post to him.
    Pretty sure he will have a very good read. I appreciate
    you for sharing!

    Check out my blog post :: NFL wholesale Jerseys

    ReplyDelete
  23. Woah! I'm really digging the template/theme of this website. It's simple, yet effective.
    A lot of times it's difficult to get that "perfect balance" between superb usability and visual appearance. I must say you have done a excellent job with this. Additionally, the blog loads super quick for me on Chrome. Exceptional Blog!

    Also visit my weblog - Air Max

    ReplyDelete
  24. Great site you have got here.. It's difficult to find quality writing like yours nowadays. I truly appreciate people like you! Take care!!

    My site: Chaussures De Foot

    ReplyDelete
  25. Right away I am going to do my breakfast, once having my breakfast coming yet again to read more
    news.

    My web blog; Michael Kors

    ReplyDelete
  26. Wonderful items from you, man. I have understand your stuff prior to and you're simply too magnificent. I actually like what you've bought right here,
    certainly like what you are stating and the way in which you
    say it. You're making it entertaining and you continue to take care of to stay it smart. I can not wait to read far more from you. This is actually a tremendous site.

    My web blog; Jordan Femme

    ReplyDelete
  27. Thanks to my father who informed me concerning this weblog, this webpage is actually awesome.


    Check out my weblog; Sac Louis Vuitton Pas Cher

    ReplyDelete
  28. Very nice post. I just stumbled upon your blog and wanted to say that I
    have truly enjoyed browsing your blog posts. In any case
    I'll be subscribing to your rss feed and I hope you write again soon!

    Also visit my blog - Abercrombie Paris

    ReplyDelete
  29. I really like your blog.. very nice colors & theme. Did you make this website yourself or did
    you hire someone to do it for you? Plz reply as I'm looking to construct my own blog and would like to find out where u got this from. thanks a lot

    Check out my homepage: KD Basketball Shoes

    ReplyDelete
  30. Howdy! I simply want to give you a big thumbs up for your great information you have got here on this post.
    I will be returning to your blog for more soon.


    Feel free to visit my webpage :: Air Max Femme

    ReplyDelete
  31. Thanks for sharing your info. I really appreciate your efforts and I will be waiting for your next write ups thank you once again.



    Also visit my web blog Nike Blazers High

    ReplyDelete
  32. fantastic points altogether, you simply gained a
    new reader. What may you recommend in regards to your
    submit that you just made some days ago? Any positive?


    Stop by my homepage; Borsa Gucci

    ReplyDelete
  33. Hello my family member! I want to say that this article is
    amazing, nice written and come with almost all important infos.
    I would like to look more posts like this .

    Review my web site ... Louis Vuitton Bags

    ReplyDelete
  34. Wow that was odd. I just wrote an incredibly long comment but after I clicked submit my comment didn't show up. Grrrr... well I'm
    not writing all that over again. Anyways, just wanted to say superb blog!



    Also visit my web site Sac Louis Vuitton ()

    ReplyDelete