Ask Question
18 August, 02:33

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. 18 August, 05:04
    0
    If (kidAge >=13 && KidAge < = 19)

    isTeenager=true;
Know the Answer?
Not Sure About the Answer?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers