#include <stdio.h>
int main(){
float a,b=1;
int n;
scanf("%f",&a);
scanf("%d",&n);
for(int i=0; i<n; i++){
b*=a+i;
}
printf("%f",b);
return 0;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <stdio.h>
int main(){
float a,b=1;
int n;
scanf("%f",&a);
scanf("%d",&n);
for(int i=0; i<n; i++){
b*=a+i;
}
printf("%f",b);
return 0;
}