1..50 e kadar olan sayıları toplar
int toplam,i; toplam=0; for (i=1 ;i<=50;i++) { toplam=toplam + i; } printf("%d",toplam);