Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
dvprog_02 [2020-08-28 12:46] Daniel Viström |
dvprog_02 [2020-09-04 14:01] Daniel Viström |
||
---|---|---|---|
Line 46: | Line 46: | ||
$tal1 + $tal2; | $tal1 + $tal2; | ||
- | echo $tal1 + $tal2 . '< | + | echo ' |
$tal3 = $tal1 + $tal2; | $tal3 = $tal1 + $tal2; | ||
echo $tal3 . '< | echo $tal3 . '< | ||
$tal3 = $tal1 . $tal2; | $tal3 = $tal1 . $tal2; | ||
echo $tal3 . '< | echo $tal3 . '< | ||
- | echo ' | ||
$tal4 = $tal3 / $tal2; | $tal4 = $tal3 / $tal2; | ||
Line 88: | Line 87: | ||
if (!($tal1 == 6)){ // Blir samma som: if ($tal1 != 6){ | if (!($tal1 == 6)){ // Blir samma som: if ($tal1 != 6){ | ||
echo 'Talet är inte 6< | echo 'Talet är inte 6< | ||
+ | } | ||
+ | |||
+ | if ($tal1 == 100) { | ||
+ | echo ' | ||
+ | } else { // else = " | ||
+ | echo 'Inte 100< | ||
} | } | ||