#include<stdio.h>
int main(){
// write a program to calculate the sum of the number occuring in the multiplcation table 8
int product=1;
int i=1;
int n=6;
while(i<=n){
product*=i;
i++;
}
printf("the factorial is %d\n",product
);
return 0;
}
I2luY2x1ZGU8c3RkaW8uaD4KaW50IG1haW4oKXsKICAgLy8gd3JpdGUgYSBwcm9ncmFtIHRvIGNhbGN1bGF0ZSB0aGUgc3VtIG9mIHRoZSBudW1iZXIgb2NjdXJpbmcgaW4gdGhlIG11bHRpcGxjYXRpb24gdGFibGUgOAogICBpbnQgcHJvZHVjdD0xOwogICBpbnQgaT0xOwogICBpbnQgbj02OwogICB3aGlsZShpPD1uKXsKICAgICAgIHByb2R1Y3QqPWk7CiAgICAgICBpKys7CiAgIH0KICAgcHJpbnRmKCJ0aGUgZmFjdG9yaWFsIGlzICVkXG4iLHByb2R1Y3QpOwogCiAgICByZXR1cm4gMDsKICAgIAp9