Embed presentation
Download to read offline




The document provides C code to calculate the sum of three mathematical series: 1) the sum of cubes from 1 to n, 2) the sum of natural numbers from 1 to n, and 3) the sum of squares from 1 to n. For each series, it prints the formula, sample C code to calculate the sum, and sample output. The C code takes the upper limit n as input and uses loops or direct formulae to calculate the sum and output the result.


