#include <stdio.h>
#include <stdlib.h>
struct data
{
int n;
}**value;
int main()
{
int m,c=0;
printf("enter the number: ");
scanf("%d",&m);
value[1]->n=m;
for(value[2]->n=0;value[2]->n<=value[1]->n;value[2]->n=value[2]->n+1)
{
c=c+value[2]->n;
}
printf("%d",c);
}
it takes the value and compiler stops working