- Challenge 3 12 1 Using Bool Activity Assign Is Teenager With True If Kidage Is 13 To 19 Inclusive Otherwise Assign I 1 (94.86 KiB) Viewed 49 times
CHALLENGE 3.12.1: Using bool. ACTIVITY Assign is Teenager with true if kidAge is 13 to 19 inclusive. Otherwise, assign i
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
CHALLENGE 3.12.1: Using bool. ACTIVITY Assign is Teenager with true if kidAge is 13 to 19 inclusive. Otherwise, assign i
CHALLENGE 3.12.1: Using bool. ACTIVITY Assign is Teenager with true if kidAge is 13 to 19 inclusive. Otherwise, assign isTeenager with false. 415226.2573686.qx3zqy7 1 #include 2 #include 3 4 int main(void) { 5 bool isTeenager; 6 int kidAge; 7 8 9 10 11 12 13 14 15 Run scanf("%d", &kidAge); /* Your solution goes here *1 if (isTeenager) { printf("Teen\n"); } else { 1 test passed All tests passed