Chapter

Summation

From ComputerScienceOne by Dr Chris Bourke

Concepts

  1. How do you normalize a number with a while loop in C?

    "Let’s revisit the example from Section 4.1.1 in which we normalize a number by continually dividing it by 10 until it is in the range [1, 10). The code in Code Sample 17.5 specifically refers to the

  2. How do you compute a summation with a for loop in C?

    "Let’s revisit the example from Section 4.2.1 in which we computed the sum of integers 1 + 2 + · · · + 10. The code is presented in Code Sample 17.6.\n\n1 int i;\n\n2 int sum = 0;\n\n3 for(i=1; i<=10;

Summation | ComputerScienceOne | Bifalgorithm | Bifalgorithm