Computer Science, asked by krounak617, 3 months ago

what is an if-statement?

Answers

Answered by Anonymous
1

If statement is statement that may be true or false.

in c++ it is part of control structure.

Answered by chordiasahil24
2

Explanation:

am if statement is a conditional statement which is used to execute certain tasks with a particular set of condition

an if statement can be used like

int a=10;

if(a<=10)

{

System.out.println("hello");

}

output: hello

Here we see that if and only if the condition is true the word hello will be printed or no output will be given

Similar questions