Ask Question
23 September, 00:27

C programming:

Write code to assign true to isTeenager if kidAge is 13 to 19 inclusive.

#include

#include

int main (void) {

bool isTeenager = false;

int kidAge = 0;

kidAge = 13;

/ * Your solution goes here * /

if (isTeenager) {

printf ("Teen/n");

}

else {

printf ("Not teen/n");

}

return 0;

}

+1
Answers (1)
  1. 23 September, 01:56
    0
    If (kidAge >=13 && KidAge < = 19)

    isTeenager=true;
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “C programming: Write code to assign true to isTeenager if kidAge is 13 to 19 inclusive. #include #include int main (void) { bool isTeenager ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers