iwebie
HOME MOVIES TV SHOWS SPORTS GENERAL
 RSSPRIVACY
 

Java Factorial Program
Posted by admin on July 6th, 2008

Watch over 100,000 movies and TV shows on your PC

[sourcecode language='java']
public class Factorial {

public static long factorial(int n) {
if (n <= 1)
return 1;
else
return n * factorial(n – 1);
}

public static void main(String[] args) {
for (int i = 1; i <= 10; i++)
System.out.println(”Factorial of “+i+” : “+factorial(i));
}
}
[/sourcecode]

Bookmark Article
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • StumbleUpon
  • Technorati
  • Propeller
One Response to “Java Factorial Program”
  1. me Says: March 5th, 2009 at 6:49 pm

    i want u to use the bufferedreader but its iok.

Leave a Reply

Most Popular

Watch over 100,000 movies and TV shows on your PC
Recent Posts

  • Watch Desperate Housewives Season 6 Episode 7 | Careful the Things You Say Full Stream
  • Watch Aston Villa vs Bolton Live Stream
  • Watch Dexter Season 4 Episode 7 | Dexter s04e07 Slack Tide Streaming Video
  • Californication Season 3 Episode 7 | Watch Californication s03e07 So Here’s The Thing Full Video Online
  • Watch The Amazing Race s15e06 | The Amazing Race Season 15 Episode 6 Stream Online
  • Watch The Fourth Kind Online Stream
  • Watch Stargate Universe Episode 7 | Stargate Universe s01e07 Earth Video Online
  • Monk Season 8 Episode 12 | Watch Mr. Monk Goes Camping Free Stream
  • Watch Wolves vs Arsenal Streaming Live
  • EPL Chelsea vs Manchester United | Watch Chelsea vs Manchester United Live Online Stream
Archives

  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
Powered by WordPress