Initial Course
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#include "conditionals.hpp"
|
||||
|
||||
namespace control_flow {
|
||||
|
||||
auto classify_score(int score) -> Grade {
|
||||
// TODO: A>=90, B>=80, C>=70, D>=60, else F
|
||||
(void)score;
|
||||
return Grade::F;
|
||||
}
|
||||
|
||||
auto max_of_three(int a, int b, int c) -> int {
|
||||
(void)a; (void)b; (void)c;
|
||||
return 0;
|
||||
}
|
||||
|
||||
auto sign_of(int value) -> int {
|
||||
// TODO: Return -1, 0, or 1
|
||||
(void)value;
|
||||
return 0;
|
||||
}
|
||||
|
||||
} // namespace control_flow
|
||||
Reference in New Issue
Block a user