Quizes
Problems
Courses
Sign
Register
Main
/
Courses
/
Basics of C++
/
For Loop. Typical tasks
For Loop. Typical tasks
№ 4
/16
Sum of Sequence Numbers - Task 3
Read Theory
Task
Time limit:
1000
ms,
Memory limit:
32 Mb
Write a program that finds not just the sum, but the sum of the squares of integers from a to b (a and b are entered from the keyboard)
Example:
Input:
1 5
Output
55
Clarification of the answer:
(1*1+2*2+3*3+4*4+5*5=55)
Auto
CHOOSE THE PROGRAMMING NECESSARY LANGUAGE!
Attach the program source file:
or enter the source code in the language:
C++
Python
FreePascal
PascalABC.Net
Kumir
Java
JavaScript
TypeScript
C#
F#
Swift
Rules for designing programs and a list of errors during automatic task verification
Results: