sec03_aakashs_factorialofit

sec03_aakashs_factorialofit - cout<<"The factorial...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <iostream> using namespace std; int main() { int num; do { cout<<"Enter a Variable between 0 and 100:"; cin>>num; } while (num < O || num > 100); double factorial ( num ); for (int n(num-1);n>0;factorial *=n,--n);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { cout<<"The factorial of "<<num<<" is"<< factorial<< endl; } return0; } /*Collaborators: Shiv Desai and Cameron DeAngelis*/...
View Full Document

Ask a homework question - tutors are online