Dance class works in pairs. Write all_paired(people): if the number of people is even, everyone has a partner, so return true; if it is odd, someone is left out, so return false. 0 people counts as true.
all_paired(6)→Trueall_paired(7)→Falsebool all_paired(int people)#include <stdbool.h>
bool all_paired(int people) {
// your code here: if the number is even, return true
return false;
}
Run tries the examples. When they look right, Submit.