-
Notifications
You must be signed in to change notification settings - Fork 0
/
logical.php
85 lines (64 loc) · 1.06 KB
/
logical.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<?php
// $a = true;
// $b = false;
// if($a && $b){
// echo "both are false";
// }else{
// echo"At least one is true";
// }
echo "<br><br>";
// $a = 1;
// $b = 5;
// if($a%2==0 && $b%2==0){
// echo "both are even";
// }else{
// echo"both are not even";
// }
echo "<br><br>";
// $a = true;
// $b = false;
// if($a || $b){
// echo "both are true";
// }else{
// echo"At least one is false";
// }
// echo "<br><br>";
// $a = 1;
// $b = 5;
// if($a%2==0 || $b%2==0){
// echo "both are even";
// }else{
// echo"both are not even";
// }
// echo "<br><br>";
// $a = false;
// $b = false;
// if($a || $b){
// echo "both are true";
// }else{
// echo"At least one is false";
// }
// echo "<br><br>";
// $a = 1;
// $b = 5;
// if($a%2==0 xor $b%2==0){
// echo "both are even";
// }else{
// echo"both are not even";
// }
// echo "<br><br>";
// $a = true;
// if($a){
// echo "a is false";
// }else{
// echo"a is not true";
// }
// echo "<br><br>";
$a = 5;
$b = 5;
if ($a!=$b){
echo"a is not equel to b";
}else{
echo"a and b equel to";
}
?>