Ask Question

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;

}

+2
Answers (1)
  1. 4 May, 03:37
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers