add initial configuration and update author information in header files

This commit is contained in:
MarcUs7i 2025-01-10 22:59:38 +01:00
parent 5beea32eee
commit 0178845516
20 changed files with 850 additions and 823 deletions

View file

@ -1,23 +1,31 @@
/*----------------------------------------------------------
* HTBLA-Leonding / Class: <your class>
* ---------------------------------------------------------
* Title: Sum of Digits
* Author: */ your name /*
* ----------------------------------------------------------
* Description:
* Recursive and iterative implementation of an algorithm that calculates
* the sum of the digits of a given positive integer.
* ----------------------------------------------------------
*/
/*
Instructions:
Define a function sum_of_digits(n) that takes a positive integer `n` as input.
The sum of digits can be calculated as n mod 10 + sum of digits of n / 10 as long as n is larger than ten.
*/
// TODO: the recursive implementation
// TODO: the iterative implementation
/*----------------------------------------------------------
* HTBLA-Leonding / Class: <your class>
* ---------------------------------------------------------
* Title: Sum of Digits
* Author: Marc Tismonar
* ----------------------------------------------------------
* Description:
* Recursive and iterative implementation of an algorithm that calculates
* the sum of the digits of a given positive integer.
* ----------------------------------------------------------
*/
#include "sum_of_digits.h"
/*
Instructions:
Define a function sum_of_digits(n) that takes a positive integer `n` as input.
The sum of digits can be calculated as n mod 10 + sum of digits of n / 10 as long as n is larger than ten.
*/
// TODO: the recursive implementation
int sum_of_digits_recursive(int n) {
return 0;
}
// TODO: the iterative implementation
int sum_of_digits_iterative(int n) {
return 0;
}