#include <iostream>
#include <cmath>
#include<iomanip>
using namespace std;
int main()
{
int i,j,factorial;
cout<<"Range Values\t Result Values"<<endl;
cout<<"------------\t -------------"<<endl;
for(i=1; i<=5; i++)
{
cout<<endl<<" "<<i;
}
for(j=1; j<=5; j++)
{
factorial= j*factorial;
cout << "factorial= " << factorial << endl;
}
return 0;
}
*** MOD EDIT: Added code tags. Please
This post has been edited by JackOfAllTrades: 21 August 2009 - 06:26 PM

New Topic/Question
Reply




MultiQuote




|