|
Post by civam61813 on Jan 3, 2024 8:01:34 GMT
When we run the program using the command we will get the following result ż , in the program we initialize the variable to a value less than . Since the balance satisfies the condition of the statement < we will receive a message after saving and running the code. Likewise if we change the balance to or a positive number we will not get any result. Statement Even if statement is false we most likely want the program to do something. In our example we want to get the result regardless of whether the rating is positive or negative. To do this we will Country Email List add a statement to the above condition with the following structure Since the above point variable value is therefore the statement. Evaluates to therefore the program will not print the message. The following statements will tell the program to perform certain operations no matter what. After saving and running the program we will get the following results If we then rewrite the program to set the point variable to or higher we will receive the message as output.
|
|