I'm trying to request a number, n, from 1 to 30 and one of the letters S or P. Then, depending upon whether S or P was selected, calculate the sum or product of the numbers from 1 to n. The program should be done in aflowchart form
Loop statements
Collapse
X
-
Tags: None
-
busted! .... so since we did the last guy's homework for him, I guess you can have it too... http://bytes.com/topic/visual-basic/...5693-next-loop -
@yarbrough40: We should make people work a little harder than that! :-P
If you want to impress people, implement these two processes recursively, whereby the function definitions call themselves. In this way you don't need to use For loops to solve the problem.
PatComment
-
completely agree! - that is a smarter approach. overall, I lost interest in revisiting the solution knowing this guy asked the EXACT same question which is obviously a homework assignment.Comment
Comment