10. Check Perfect Number
Lesson 11 of 31 in Coddy's 30 Days of Logic Building in C++ course.
Challenge
MediumWrite a function to check if a number is a perfect number.
- Input: 28
- Output: true
Try it yourself
bool isPerfectNumber(int num) {
// write your code below
}All lessons in 30 Days of Logic Building in C++
1Introduction
Introduction