Next: About this document ...
Up: Loops
Previous: Computing square roots

Checkoff

Write a program that repeatedly prompts for a REAL number (we'll call it X), then prints out X and X*X, until a negative number is entered. The program should then stop. Do not use a GOTO statement in your solution. (The STOP statement does not always have to be the next-to-last statement in your programs.

Homework Problem 9

Do the sums:

converge? Write infinite loops to evaluate these sums, in an attempt to arrive the answer to the question. What is your conclustion?

Call your program solution9.f. To submit it for grading, use the UNIX Shell window to connect to the directory that contains your program and enter the following command

hand-in cs101 problem-9 solution9.f


Next: About this document ...
Up: Loops
Previous: Computing square roots

Hamlet Project
hamlet@cs.utah.edu