to convert from java to C++
        class fact {
    public static void main(String args[])  {
          int a=25, factor=1;
          while (a >= 1)
          {
              factor*=a;
              a--;
         }
          System.out.print("The factorial of 25 is " + 
                             factor + ".");
      }
  }
   
    #include <iostream.h>
      uses namespace std;
  while (a>= 1) {
  cout << "factor *= " << a;
      a--;
  }
    int main() {
       int a = 5, factor = 1;
      cout << "the factor of 5 is " << factor;
  } 

   
         

 
---------------------------------
Don't be flakey. Get Yahoo! Mail for Mobile and 
always stay connected to friends.

[Non-text portions of this message have been removed]

Reply via email to