Computer Science, asked by subhamsingh21, 7 months ago

write the syntax of if then else statement with logical operators.Support your answer with the help of example​

Answers

Answered by yuvi153
2

Answer:

if ( condition)

{

statements ;

}

else (condition)

{

statements ;

}

this is general syntax of if -else statement

Explanation:

int n =10

if (n<5)

{

Sopln ("no. less than 5");

}

else (n>5)

{

Sopln ("no. greater than 5");

}

hope it helps

plz mark me as BRAINLIEST

Similar questions