mirror of
https://github.com/ada-dmitry/TMP_C712.git
synced 2026-09-24 09:10:16 +00:00
added more task
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user