I am new to c++ and taking a college coarse on it. Immediately i need help on one of my labs. I'm suppose to provide an inner loop that computes the zeta function and the other loop is just press y for to continue, anything else exit.so far i got this:
When learning, it is extremely important to use correct indenting. It may seem trivial and something you can 'fix' later, but when your programs get to be more than 40 lines, it will become impossible to read.
If you haven't learned functions yet, then just stick lines 5-13 inside of your while(flag=='y') loop. If you can't figure out where your while loops start and end, then fix your formatting.
i forgot to mention i must put it in a "while" loop, and my prof. has restricted the class from using break (except in switch) and constant?. Is it also possible to dumb things down to a level of a beginner, i don't want to use anything beside what i learn which is simple stuff what i just kind of did.