C Language Diary
int main(){ int i = 1, s = 0; do { s = s + i; i++; } while (i <= 100); printf(“%d”, s); return 0;} A program I wrote to calculate the sum of natural numbers. Well, it took about 1 hour. I can’t help it; I am a C enthusiast, but this is … Read more