Search:

Type: Posts; User: iamgonge

Search: Search took 0.10 seconds.

  1. Replies
    7
    Views
    1,088

    Re: Factorial loop help

    public class FactorialInt {

    public static void main (String args[]){
    int input_number = 0;
    int factorial = 1;

    while (factorial < 2000){
    input_number = input_number + 1;
    factorial =...
  2. Replies
    7
    Views
    1,088

    Re: Factorial loop help

    not sure how to make that happen since i have a loop going already, do i add another loop or does my current loop need to be changed?
  3. Replies
    7
    Views
    1,088

    Re: Factorial loop help

    i did that and its 7, bit the program is to i guess run a loop that finds that number
  4. Replies
    7
    Views
    1,088

    Factorial loop help

    Ok so I need to find the smallest integer whose factorial is greater than 2000

    current code:
    public class FactorialInt {
    public static void main (String args[]){

    int value = 7, factorial =...
Results 1 to 4 of 4