renaming labs

This commit is contained in:
Jidong Xiao
2025-01-07 17:20:18 -05:00
parent b6b2f01b8a
commit a1ec479522
20 changed files with 1365 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#include <iostream>
bool isGood(int n) {
}
int main() {
// Test cases
// 2, 4, 5, 6, 17, 18, 20 are not good numbers.
// 1, 7, 10, 13, 19, 23, 28, 68 are good numbers.
int testCases[] = {2,4,5,6,17,18,20,1,7,10,13,19,23,28,68};
for (int n : testCases) {
if (isGood(n)) {
std::cout << n << " is a good number." << std::endl;
} else {
std::cout << n << " is not a good number." << std::endl;
}
}
return 0;
}