C++assign isteenager with true if kidage is 13 to 19 inclusive. otherwise, assign isteenager with false.public class TeenagerDetector {publicstaticvoidmain (String [] args) {Scannerscnr=newScanner(System.in);booleanisTeenager;intkidAge;kidAge=scnr.nextInt();if ( (kidsAge>13) && (kidsAge<19), {isTeenager=true;}elseif {isTeenager=false;} if (isTeenager) {System.out.println("Teen");}else {System.out.println("Not teen");}