what is an if-statement?
Answers
Answered by
1
If statement is statement that may be true or false.
in c++ it is part of control structure.
Answered by
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