Erster Commit

This commit is contained in:
2026-09-24 14:39:54 +02:00
commit dc05214087
245 changed files with 20517 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
//Made by Vlad. Budnitski.
//AlphaTech - Programming Course.
#include <stdio.h>
int main()
{
float a1, an, Sn;
int n;
printf("Enter the Initial Term (a1): ");
scanf("%f", &a1);
printf("Enter the n-th Term (an): ");
scanf("%f", &an);
printf("Enter the number of elements in the Arithmetic Sequence: ");
scanf("%d", &n);
Sn = (a1 + an) * n / 2;
printf("The sum of your sequence = %.2f\n", Sn);
return 0;
}