```
long seats;
long no_of_guests;
long fact=1;
cout<<"Enter the number of seats nn";
cin>>seats;
cout<<"nnEnter the number of guestsnn";
cin>>no_of_guests;
for(int i=0;i<seats;i++)
{
fact*=no_of_guests;
no_of_guests--;
}
cout<<"the possible combinations : "<<fact<<"nn";
```

this code has run successfully but there is a something that I couldn't get

first this program will run this way:

```
Enter the number of seats
4
Enter the number of guests
6
the possible combinations : 360
press any key to continue..........
```

if I entered for example in seats 300

and in number of guests 400

then this is the output

```
the possible combinations : 0
```

my question is why the output is zero and not the actual answer

thank you

:) :)