logoISU  

CS256 - Principles of Structured Design

Fall 2021

Displaying ./code/sternflCode/p3a.c

#include<stdio.h>

int main() {
  int sum = 0;
  for(int num=1; num<10001; num++)
    sum = sum+num;    //R.H.S. first; then the value on right put into
                      //the variable on the left
  printf("%d\n", sum);
}