Take It Easy

This is a very simple problem. You will be given a single integer n. You have to print four numbers …

Click here to read the complete problem statement.

If you need help solving this problem, mention your approach and ask specific questions. Please avoid sharing your code and asking the Community to figure out “what’s wrong”.

int main(){

int a,b,d,n,count,fact=1;
scanf(“%d”, &n);
a = n*(n+1)/2;
b = pow(n,n);
for(count= 1;count<=n;count++){
fact = fact*count;

d = pow(2,n) + pow(3,n);
printf(“%d %d %d %d\n”,a,b,fact,d);
return 0;

// why it is printing wrong value if i input more than 10??