added more task

This commit is contained in:
ada-dmitry
2023-11-15 10:34:29 +03:00
parent 2a3484ba88
commit 10b256c812
14 changed files with 126 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#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;
}