mirror of
https://github.com/ada-dmitry/TMP_C712.git
synced 2026-09-24 01:00:19 +00:00
14 lines
207 B
C
14 lines
207 B
C
#include <stdio.h>
|
|
|
|
int main()
|
|
{
|
|
int Bell, nBell;
|
|
|
|
scanf("%d%d", &Bell, &nBell);
|
|
|
|
int sum_arifm_seq = (Bell + nBell) * (nBell - Bell + 1) / 2;
|
|
|
|
printf("%d\n", sum_arifm_seq);
|
|
|
|
return 0;
|
|
} |