Code Snippets C

#include
#include
int main(void)
{
int x, j, k, m;
do {
printf("Enter a value: ");
scanf("%d", &x);
m = 0;
for(j=0; j for(k=0; k<80; k++)
m = k + m;
} while(x>0);
return 0;
}