Computer Science, asked by dikshachettri00, 1 month ago

write a C++ statement to compare the value of age is equal to 18 using equality operators.​

Answers

Answered by itsmerockingaarav
1

Answer:

sorry i don't know c++ (i know only 10%)

but i made in c

hope it helps

and mark me as brainliest

Explanation:

#include <stdio.h>

int main()

{

   int age;

   printf("Enter your age");

   scanf("%d", &age);

   if(age >= 18)

   printf("you are 18 or older");

   

   else if (age<18)

   printf("you are not 18");

   

   return 0;

}

Similar questions