Computer Science, asked by tripathivinod743, 3 months ago

1. Explain Conditional Statements and its syntax with the help of an example.​

Answers

Answered by parthasarathidas78
1

Answer:

Using a computer programming language, the conditional statement above could be written like the example statements below. ... if ($myval < 10) { print "Value is less than 10"; } In this example, if the variable $myval is less than 10, the software program prints "Value is less than 10" to the screen.

Answered by harshika2556
1

\huge\colorbox{brown}{Answer}

It is sometimes referred to as an If-Then statement, because IF a condition is met, THEN an action is performed. For example, consider the following textual example of a conditional statement. IF a value is less than 10, THEN display the words "Value is less than 10" on the screen.

ʜᴏᴘᴇ ɪᴛ ʜᴇʟᴘs ᴜʜʜ✌️

❥ᴘʀɪʏᴀ

Similar questions