Zoho online Assesment question

You have been given A and B in range. Find the product of all numbers in the range. 1<=A<=100,000 and A<=B<=100,000

1 Like

int main(){
int a,b,prod=1;
scanf("%d %d",&a,&b);
if(a>=1 && a<=100000){
for(int i=a;i<=b;i++) prod *= i;

i guess u cannot take calculate product of that much large numbers.