First Exercise

This commit is contained in:
2025-02-20 23:51:20 +01:00
parent 2b700071aa
commit d580b385e5
27 changed files with 207 additions and 36 deletions

View File

@@ -0,0 +1,15 @@
#ifndef PROJECT_H
#define PROJECT_H
// NOTE: You cannot change this file. In "only" contains declarations and
// short descriptions of the functionality we provided to you.
// This function returns a randomly chosen integer from the interval [0, max].
int randomly_choose_a_number(int max);
// This function returns a number from the interval [1, max].
// The number is randomly chosen if we're in interactive mode and parameter
// choose_randomly is true, and read from the keyboard (std::cin) otherwise.
int choose_a_number(int max);
#endif