Examlex

Solved

Using a While Loop, Write a Code Fragment That Computes

question 18

Short Answer

Using a while loop, write a code fragment that computes the sum of the first n natural numbers (i.e. 1, 2, 3, 4, ... n), where n is an integer variable already defined in the program.


Definitions:

Corn Chips

Snack foods made from cornmeal and fried or baked in oil.

Corn Chips

Snack food made from cornmeal fried or baked in oil, often seasoned, known for their crunchiness and popular as a party snack.

French Fries

Sliced potatoes that are deep-fried until golden brown and are often served as a side dish.

Goods X

An unspecified product or commodity that is the subject of economic analysis or transaction.

Related Questions