次の課題答えあっているかどうか不安だが・・。
#include<stdio.h>
int main(void)
{
int a,b=0;
for(a=1;a<50;a++)
b=b+a;

printf("1から50までの合計は%dです。",&b);
return 0;
}