Code Snippets C

#include
int main(void)
{
int k;
char j;
k = 0;
for(j = 1; j < 101; j++)
k = j + k;
printf("Total is: %d", k);
return 0;
}