R
R
Real5392018-10-29 14:02:00
C++ / C#
Real539, 2018-10-29 14:02:00

Where is the error in C++Builder?

Expression S=4+7-10+13+16-19+22+25-28+...total n terms;
Correct code?
5bd6e88cc1364957598709.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rsa97, 2018-10-29
@Rsa97

There is no error in C++Builder. The program does exactly what you wrote in it.
And follow the rules of the resource :

3.8. Use only a special <code> tag or special demo resources (for example, JsFiddle - https://jsfiddle.net/) to demonstrate code snippets. Placing code snippets as images is prohibited.

P
Pavel, 2018-10-29
Yazovskikh @unepic

Try to figure out in your head how many times your loop will be executed if you take n=2.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question